]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: sigma_dut ap_get_mac_address
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 11 Oct 2017 21:02:10 +0000 (00:02 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 11 Oct 2017 21:02:10 +0000 (00:02 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_sigma_dut.py

index 9c0ffb6304bb54e4796929113e9bc099dbadebf3..36808fdceab917a22cc36422ca2fe21c031ab9d9 100644 (file)
@@ -763,8 +763,15 @@ def test_sigma_dut_ap_owe_transition_mode(dev, apdev, params):
             sigma_dut_cmd_check("ap_set_security,NAME,AP,WLAN_TAG,2,KEYMGNT,NONE")
             sigma_dut_cmd_check("ap_config_commit,NAME,AP")
 
+            res1 = sigma_dut_cmd_check("ap_get_mac_address,NAME,AP,WLAN_TAG,1,Interface,24G")
+            res2 = sigma_dut_cmd_check("ap_get_mac_address,NAME,AP,WLAN_TAG,2,Interface,24G")
+
             dev[0].connect("owe", key_mgmt="OWE", scan_freq="2412")
             dev[1].connect("owe", key_mgmt="NONE", scan_freq="2412")
+            if dev[0].get_status_field('bssid') not in res1:
+                raise Exception("Unexpected ap_get_mac_address WLAN_TAG,1: " + res1)
+            if dev[1].get_status_field('bssid') not in res2:
+                raise Exception("Unexpected ap_get_mac_address WLAN_TAG,2: " + res2)
 
             sigma_dut_cmd_check("ap_reset_default")
         finally: