mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 19:43:03 -05:00
tests: HT capability overrides
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e74dd0e55b
commit
08429720a7
@ -432,6 +432,11 @@ def test_ap_require_ht(dev, apdev):
|
|||||||
raise Exception("Association rejection timed out")
|
raise Exception("Association rejection timed out")
|
||||||
if "status_code=27" not in ev:
|
if "status_code=27" not in ev:
|
||||||
raise Exception("Unexpected rejection status code")
|
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):
|
def test_ap_require_ht_limited_rates(dev, apdev):
|
||||||
"""Require HT with limited supported rates"""
|
"""Require HT with limited supported rates"""
|
||||||
|
@ -646,7 +646,7 @@ class WpaSupplicant:
|
|||||||
"private_key_passwd", "ca_cert2", "client_cert2",
|
"private_key_passwd", "ca_cert2", "client_cert2",
|
||||||
"private_key2", "phase1", "phase2", "domain_suffix_match",
|
"private_key2", "phase1", "phase2", "domain_suffix_match",
|
||||||
"altsubject_match", "subject_match", "pac_file", "dh_file",
|
"altsubject_match", "subject_match", "pac_file", "dh_file",
|
||||||
"bgscan" ]
|
"bgscan", "ht_mcs" ]
|
||||||
for field in quoted:
|
for field in quoted:
|
||||||
if field in kwargs and kwargs[field]:
|
if field in kwargs and kwargs[field]:
|
||||||
self.set_network_quoted(id, field, kwargs[field])
|
self.set_network_quoted(id, field, kwargs[field])
|
||||||
@ -654,7 +654,9 @@ class WpaSupplicant:
|
|||||||
not_quoted = [ "proto", "key_mgmt", "ieee80211w", "pairwise",
|
not_quoted = [ "proto", "key_mgmt", "ieee80211w", "pairwise",
|
||||||
"group", "wep_key0", "scan_freq", "eap",
|
"group", "wep_key0", "scan_freq", "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_max_amsdu", "ampdu_factor", "ampdu_density",
|
||||||
|
"disable_ht40", "disable_sgi", "disable_ldpc" ]
|
||||||
for field in not_quoted:
|
for field in not_quoted:
|
||||||
if field in kwargs and kwargs[field]:
|
if field in kwargs and kwargs[field]:
|
||||||
self.set_network(id, field, kwargs[field])
|
self.set_network(id, field, kwargs[field])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user