aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-01-10 15:50:43 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2018-01-11 22:50:45 (GMT)
commit7e526fa735a73482c913c941af75842455ae0b9b (patch)
tree6ce287f546260f509ef15c9aba7052c099293111
parentc5238c483f757a6f42f2ed9ed22dbbe9e29dc193 (diff)
downloadhostap-7e526fa735a73482c913c941af75842455ae0b9b.zip
hostap-7e526fa735a73482c913c941af75842455ae0b9b.tar.gz
hostap-7e526fa735a73482c913c941af75842455ae0b9b.tar.bz2
tests: sigma_dut sta_scan_bss
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--tests/hwsim/test_sigma_dut.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py
index cece77b..37305d0 100644
--- a/tests/hwsim/test_sigma_dut.py
+++ b/tests/hwsim/test_sigma_dut.py
@@ -2065,3 +2065,16 @@ def run_sigma_dut_wps_pbc(dev, apdev):
sigma_dut_cmd_check("sta_reset_default,interface," + ifname)
stop_sigma_dut(sigma)
dev[0].flush_scan_cache()
+
+def test_sigma_dut_sta_scan_bss(dev, apdev):
+ """sigma_dut sta_scan_bss"""
+ hapd = hostapd.add_ap(apdev[0], { "ssid": "test" })
+ sigma = start_sigma_dut(dev[0].ifname)
+ try:
+ cmd = "sta_scan_bss,Interface,%s,BSSID,%s" % (dev[0].ifname, \
+ hapd.own_addr())
+ res = sigma_dut_cmd(cmd, timeout=10)
+ if "ssid,test,bsschannel,1" not in res:
+ raise Exception("Unexpected result: " + res)
+ finally:
+ stop_sigma_dut(sigma)