]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Disabling HE support in STA
authorJouni Malinen <j@w1.fi>
Fri, 12 Mar 2021 08:47:50 +0000 (10:47 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 12 Mar 2021 08:47:50 +0000 (10:47 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_he.py
tests/hwsim/wpasupplicant.py

index 8114f339febb402d3d5d79d47ea9bb9b6083c05a..50f5b05f8b5830b542167db65ec497340d05b748 100644 (file)
@@ -26,6 +26,22 @@ def test_he_open(dev, apdev):
     if hapd.get_status_field("ieee80211ax") != "1":
         raise Exception("STATUS did not indicate ieee80211ac=1")
     dev[0].connect("he", key_mgmt="NONE", scan_freq="2412")
+    sta = hapd.get_sta(dev[0].own_addr())
+    if "[HE]" not in sta['flags']:
+        raise Exception("Missing STA flag: HE")
+
+def test_he_disabled_on_sta(dev, apdev):
+    """HE AP and HE disabled on STA"""
+    params = {"ssid": "he",
+              "ieee80211ax": "1",
+              "he_bss_color": "42",
+              "he_mu_edca_ac_be_ecwmin": "7",
+              "he_mu_edca_ac_be_ecwmax": "15"}
+    hapd = hostapd.add_ap(apdev[0], params)
+    dev[0].connect("he", key_mgmt="NONE", scan_freq="2412", disable_he="1")
+    sta = hapd.get_sta(dev[0].own_addr())
+    if "[HE]" in sta['flags']:
+        raise Exception("Unexpected STA flag: HE")
 
 def test_he_params(dev, apdev):
     """HE AP parameters"""
index fed1d107612d58bcc82e8c3b7e770582f7e2385d..fdece92f66d4aeed0772db83e0e41d8e142b8504 100644 (file)
@@ -1092,6 +1092,7 @@ class WpaSupplicant:
                       "wep_tx_keyidx", "scan_freq", "freq_list", "eap",
                       "eapol_flags", "fragment_size", "scan_ssid", "auth_alg",
                       "wpa_ptk_rekey", "disable_ht", "disable_vht", "bssid",
+                      "disable_he",
                       "disable_max_amsdu", "ampdu_factor", "ampdu_density",
                       "disable_ht40", "disable_sgi", "disable_ldpc",
                       "ht40_intolerant", "update_identifier", "mac_addr",