From f1d7742c535be672eada6c34916c629f3448f437 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 27 Dec 2016 21:14:34 +0200 Subject: [PATCH] tests: hostapd global ctrl_iface INTERFACES Signed-off-by: Jouni Malinen --- tests/hwsim/test_hapd_ctrl.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_hapd_ctrl.py b/tests/hwsim/test_hapd_ctrl.py index 125924c93..1bbe241ca 100644 --- a/tests/hwsim/test_hapd_ctrl.py +++ b/tests/hwsim/test_hapd_ctrl.py @@ -476,6 +476,16 @@ def test_hapd_ctrl_global(dev, apdev): res = hapd_global.request("IFNAME=" + ifname + " GET version") if "FAIL" in res: raise Exception("Could not get hostapd version for " + ifname + " via global control interface") + res = hapd_global.request("INTERFACES") + if "FAIL" in res: + raise Exception("INTERFACES command failed") + if apdev[0]['ifname'] not in res.splitlines(): + raise Exception("AP interface missing from INTERFACES") + res = hapd_global.request("INTERFACES ctrl") + if "FAIL" in res: + raise Exception("INTERFACES ctrl command failed") + if apdev[0]['ifname'] + " ctrl_iface=" not in res: + raise Exception("AP interface missing from INTERFACES ctrl") def dup_network(hapd_global, src, dst, param): res = hapd_global.request("DUP_NETWORK %s %s %s" % (src, dst, param)) -- 2.47.3