tests: Multi-AP and WPS parameter update

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2021-03-28 18:43:47 +03:00
parent 838a5aa95a
commit f9ca4e3107

View 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']) dev[0].cmd_execute(['iw', wpas_apdev['ifname'], 'del'])
raise raise
return hapd
def test_multi_ap_wps_shared(dev, apdev): def test_multi_ap_wps_shared(dev, apdev):
"""WPS on shared fronthaul/backhaul AP""" """WPS on shared fronthaul/backhaul AP"""
ssid = "multi-ap-wps" ssid = "multi-ap-wps"
@ -233,7 +235,15 @@ def test_multi_ap_wps_shared(dev, apdev):
params.update({"multi_ap": "3", params.update({"multi_ap": "3",
"multi_ap_backhaul_ssid": '"%s"' % ssid, "multi_ap_backhaul_ssid": '"%s"' % ssid,
"multi_ap_backhaul_wpa_passphrase": passphrase}) "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): def test_multi_ap_wps_shared_csa(dev, apdev):
"""WPS on shared fronthaul/backhaul AP, run CSA""" """WPS on shared fronthaul/backhaul AP, run CSA"""