]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: sigma_dut sta_scan_bss
authorJouni Malinen <jouni@codeaurora.org>
Wed, 10 Jan 2018 15:50:43 +0000 (17:50 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Thu, 11 Jan 2018 22:50:45 +0000 (00:50 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sigma_dut.py

index cece77bf48f6ff0810413efb7eca2e65997d83a4..37305d0287d81c91b3e4b2b173e977da44961332 100644 (file)
@@ -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)