]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Multi-AP and WPS parameter update
authorJouni Malinen <j@w1.fi>
Sun, 28 Mar 2021 15:43:47 +0000 (18:43 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 28 Mar 2021 15:43:47 +0000 (18:43 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_multi_ap.py

index 183fb660d200b2e3389fc3102ab6a96ddf701784..ca8ea3a31f9097d4461b5788c2cf18b91de06f77 100644 (file)
@@ -225,6 +225,8 @@ def run_multi_ap_wps(dev, apdev, params, params_backhaul=None, add_apdev=False,
             dev[0].cmd_execute(['iw', wpas_apdev['ifname'], 'del'])
         raise
 
+    return hapd
+
 def test_multi_ap_wps_shared(dev, apdev):
     """WPS on shared fronthaul/backhaul AP"""
     ssid = "multi-ap-wps"
@@ -233,7 +235,15 @@ def test_multi_ap_wps_shared(dev, apdev):
     params.update({"multi_ap": "3",
                    "multi_ap_backhaul_ssid": '"%s"' % ssid,
                    "multi_ap_backhaul_wpa_passphrase": passphrase})
-    run_multi_ap_wps(dev, apdev, params)
+    hapd = run_multi_ap_wps(dev, apdev, params)
+    # Verify WPS parameter update with Multi-AP
+    if "OK" not in hapd.request("RELOAD"):
+        raise Exception("hostapd RELOAD failed")
+    dev[0].wait_disconnected()
+    dev[0].request("REMOVE_NETWORK all")
+    hapd.request("WPS_PBC")
+    dev[0].request("WPS_PBC multi_ap=1")
+    dev[0].wait_connected(timeout=20)
 
 def test_multi_ap_wps_shared_csa(dev, apdev):
     """WPS on shared fronthaul/backhaul AP, run CSA"""