tests: Disabling HE support in STA

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2021-03-12 10:47:50 +02:00
parent a6b2007c2f
commit a3c94d61cd
2 changed files with 17 additions and 0 deletions

View file

@ -26,6 +26,22 @@ def test_he_open(dev, apdev):
if hapd.get_status_field("ieee80211ax") != "1": if hapd.get_status_field("ieee80211ax") != "1":
raise Exception("STATUS did not indicate ieee80211ac=1") raise Exception("STATUS did not indicate ieee80211ac=1")
dev[0].connect("he", key_mgmt="NONE", scan_freq="2412") 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): def test_he_params(dev, apdev):
"""HE AP parameters""" """HE AP parameters"""

View file

@ -1092,6 +1092,7 @@ class WpaSupplicant:
"wep_tx_keyidx", "scan_freq", "freq_list", "eap", "wep_tx_keyidx", "scan_freq", "freq_list", "eap",
"eapol_flags", "fragment_size", "scan_ssid", "auth_alg", "eapol_flags", "fragment_size", "scan_ssid", "auth_alg",
"wpa_ptk_rekey", "disable_ht", "disable_vht", "bssid", "wpa_ptk_rekey", "disable_ht", "disable_vht", "bssid",
"disable_he",
"disable_max_amsdu", "ampdu_factor", "ampdu_density", "disable_max_amsdu", "ampdu_factor", "ampdu_density",
"disable_ht40", "disable_sgi", "disable_ldpc", "disable_ht40", "disable_sgi", "disable_ldpc",
"ht40_intolerant", "update_identifier", "mac_addr", "ht40_intolerant", "update_identifier", "mac_addr",