]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: HE AP spatial reuse parameters
authorJouni Malinen <j@w1.fi>
Fri, 19 Mar 2021 21:58:39 +0000 (23:58 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 19 Mar 2021 21:58:39 +0000 (23:58 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_he.py

index 3dc33adac078f55180b3845e3ff445019f9fec77..2593f35f0bf16d33a6c3dd0c4f0430f50573dbc6 100644 (file)
@@ -97,6 +97,24 @@ def test_he_params(dev, apdev):
         raise Exception("STATUS did not indicate ieee80211ax=1")
     dev[0].connect("he", key_mgmt="NONE", scan_freq="2412")
 
+def test_he_spr_params(dev, apdev):
+    """HE AP spatial reuse parameters"""
+    params = {"ssid": "he",
+              "ieee80211ax": "1",
+              "he_spr_sr_control": "12",
+              "he_spr_non_srg_obss_pd_max_offset": "1",
+              "he_spr_srg_obss_pd_min_offset": "2",
+              "he_spr_srg_obss_pd_max_offset": "3",
+              "he_spr_srg_bss_colors": "1 2 10 63",
+              "he_spr_srg_partial_bssid": "0 1 3 63",
+              "he_oper_chwidth": "0",
+              "he_oper_centr_freq_seg0_idx": "1",
+              "he_oper_centr_freq_seg1_idx": "0"}
+    hapd = hostapd.add_ap(apdev[0], params)
+    if hapd.get_status_field("ieee80211ax") != "1":
+        raise Exception("STATUS did not indicate ieee80211ax=1")
+    dev[0].connect("he", key_mgmt="NONE", scan_freq="2412")
+
 def he_supported():
     cmd = subprocess.Popen(["iw", "reg", "get"], stdout=subprocess.PIPE)
     reg = cmd.stdout.read().decode()