aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-12-21 10:46:14 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-21 10:46:14 (GMT)
commit0c8d7b085c4db792a6b175023aac58b797bea341 (patch)
treed4f6103c79921a7efe594b58b054c1fbc6ed4339
parent9187b13adb899dac1e8ab062844a84480dfc3bcc (diff)
downloadhostap-0c8d7b085c4db792a6b175023aac58b797bea341.zip
hostap-0c8d7b085c4db792a6b175023aac58b797bea341.tar.gz
hostap-0c8d7b085c4db792a6b175023aac58b797bea341.tar.bz2
tests: wpa_supplicant BSS CURRENT command
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--tests/hwsim/test_wpas_ctrl.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py
index 76731e5..e35b958 100644
--- a/tests/hwsim/test_wpas_ctrl.py
+++ b/tests/hwsim/test_wpas_ctrl.py
@@ -1975,3 +1975,15 @@ def test_wpas_ctrl_driver_flags(dev, apdev):
flags = hapd_flags.split('\n')
if 'AP' not in flags:
raise Exception("AP flag missing from DRIVER_FLAGS")
+
+def test_wpas_ctrl_bss_current(dev, apdev):
+ """wpa_supplicant BSS CURRENT command"""
+ hapd = hostapd.add_ap(apdev[0], { "ssid": "open" })
+ bssid = hapd.own_addr()
+ res = dev[0].request("BSS CURRENT")
+ if res != '':
+ raise Exception("Unexpected BSS CURRENT response in disconnected state")
+ dev[0].connect("open", key_mgmt="NONE", scan_freq="2412")
+ res = dev[0].request("BSS CURRENT")
+ if bssid not in res:
+ raise Exception("Unexpected BSS CURRENT response in connected state")