diff --git a/tests/hwsim/test_he.py b/tests/hwsim/test_he.py index 8114f339f..50f5b05f8 100644 --- a/tests/hwsim/test_he.py +++ b/tests/hwsim/test_he.py @@ -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""" diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index fed1d1076..fdece92f6 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -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",