tests: HT capability overrides
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e74dd0e55b
commit
08429720a7
2 changed files with 9 additions and 2 deletions
|
@ -432,6 +432,11 @@ def test_ap_require_ht(dev, apdev):
|
|||
raise Exception("Association rejection timed out")
|
||||
if "status_code=27" not in ev:
|
||||
raise Exception("Unexpected rejection status code")
|
||||
dev[2].connect("require-ht", key_mgmt="NONE", scan_freq="2412",
|
||||
ht_mcs="0x01 00 00 00 00 00 00 00 00 00",
|
||||
disable_max_amsdu="1", ampdu_factor="2",
|
||||
ampdu_density="1", disable_ht40="1", disable_sgi="1",
|
||||
disable_ldpc="1")
|
||||
|
||||
def test_ap_require_ht_limited_rates(dev, apdev):
|
||||
"""Require HT with limited supported rates"""
|
||||
|
|
|
@ -646,7 +646,7 @@ class WpaSupplicant:
|
|||
"private_key_passwd", "ca_cert2", "client_cert2",
|
||||
"private_key2", "phase1", "phase2", "domain_suffix_match",
|
||||
"altsubject_match", "subject_match", "pac_file", "dh_file",
|
||||
"bgscan" ]
|
||||
"bgscan", "ht_mcs" ]
|
||||
for field in quoted:
|
||||
if field in kwargs and kwargs[field]:
|
||||
self.set_network_quoted(id, field, kwargs[field])
|
||||
|
@ -654,7 +654,9 @@ class WpaSupplicant:
|
|||
not_quoted = [ "proto", "key_mgmt", "ieee80211w", "pairwise",
|
||||
"group", "wep_key0", "scan_freq", "eap",
|
||||
"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_max_amsdu", "ampdu_factor", "ampdu_density",
|
||||
"disable_ht40", "disable_sgi", "disable_ldpc" ]
|
||||
for field in not_quoted:
|
||||
if field in kwargs and kwargs[field]:
|
||||
self.set_network(id, field, kwargs[field])
|
||||
|
|
Loading…
Reference in a new issue