]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Set sta_wds in multi_ap_backhaul_shared_bss
authorJouni Malinen <quic_jouni@quicinc.com>
Sat, 13 Jul 2024 15:06:42 +0000 (18:06 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jul 2024 15:09:32 +0000 (18:09 +0300)
This is needed to add the WDS interface for a STA with stricter
implementation checks.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_multi_ap.py

index 8bfcbda216ee4430dff38ca737ce094e9699fa91..e1dfa568cf5e5aedc07ffd94cca8bc8ae787b887 100644 (file)
@@ -32,15 +32,19 @@ def test_multi_ap_association_shared_bss(dev, apdev):
 
 def test_multi_ap_backhaul_shared_bss(dev, apdev):
     """Multi-AP backhaul to backhaul+fronthaul BSS"""
-    hapd = run_multi_ap_association(dev, apdev, 3, wait_connect=False)
+    hapd = run_multi_ap_association(dev, apdev, 3, wait_connect=False,
+                                    wds_sta=True)
     ev = hapd.wait_event(["WDS-STA-INTERFACE-ADDED"], timeout=10)
     if ev is None:
         raise Exception("No WDS-STA-INTERFACE-ADDED event seen")
 
-def run_multi_ap_association(dev, apdev, multi_ap, wait_connect=True):
+def run_multi_ap_association(dev, apdev, multi_ap, wait_connect=True,
+                             wds_sta=False):
     params = hostapd.wpa2_params(ssid="multi-ap", passphrase="12345678")
     if multi_ap:
         params["multi_ap"] = str(multi_ap)
+    if wds_sta:
+        params["wds_sta"] = "1"
     hapd = hostapd.add_ap(apdev[0], params)
 
     dev[0].connect("multi-ap", psk="12345678", scan_freq="2412",