]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: sigma_dut sta_scan GetParameter,SSID_BSSID
authorJouni Malinen <jouni@codeaurora.org>
Thu, 21 Mar 2019 15:08:02 +0000 (17:08 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 23 Mar 2019 10:50:46 +0000 (12:50 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sigma_dut.py

index ebc8458c2095d4b7b8ed166cc7ce40694d2ad526..ff58b1efb274dbe334e05364908c5a65ff7b794d 100644 (file)
@@ -2212,6 +2212,19 @@ def test_sigma_dut_sta_scan_bss(dev, apdev):
     finally:
         stop_sigma_dut(sigma)
 
+def test_sigma_dut_sta_scan_ssid_bssid(dev, apdev):
+    """sigma_dut sta_scan GetParameter,SSID_BSSID"""
+    hostapd.add_ap(apdev[0], {"ssid": "abcdef"})
+    hostapd.add_ap(apdev[1], {"ssid": "qwerty"})
+    sigma = start_sigma_dut(dev[0].ifname, debug=True)
+    try:
+        cmd = "sta_scan,Interface,%s,GetParameter,SSID_BSSID" % dev[0].ifname
+        res = sigma_dut_cmd(cmd, timeout=10)
+        if "abcdef" not in res or "qwerty" not in res:
+            raise Exception("Unexpected result: " + res)
+    finally:
+        stop_sigma_dut(sigma)
+
 def test_sigma_dut_ap_osen(dev, apdev, params):
     """sigma_dut controlled AP with OSEN"""
     logdir = os.path.join(params['logdir'],