From f9ca4e3107cd6dc55d0dfbe43ff788542a11b8d9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 28 Mar 2021 18:43:47 +0300 Subject: [PATCH] tests: Multi-AP and WPS parameter update Signed-off-by: Jouni Malinen --- tests/hwsim/test_multi_ap.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_multi_ap.py b/tests/hwsim/test_multi_ap.py index 183fb660d..ca8ea3a31 100644 --- a/tests/hwsim/test_multi_ap.py +++ b/tests/hwsim/test_multi_ap.py @@ -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"""