tests: HT40 on 5 GHz with invalid channel pair
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5ce2a9ac50
commit
97e4688b2f
1 changed files with 16 additions and 0 deletions
|
@ -944,3 +944,19 @@ def test_prefer_ht20_during_roam(dev, apdev):
|
|||
|
||||
if dev[0].get_status_field('bssid') != bssid2:
|
||||
raise Exception("Unexpected BSS selected")
|
||||
|
||||
def test_ap_ht40_5ghz_invalid_pair(dev, apdev):
|
||||
"""HT40 on 5 GHz with invalid channel pair"""
|
||||
clear_scan_cache(apdev[0]['ifname'])
|
||||
try:
|
||||
params = { "ssid": "test-ht40",
|
||||
"hw_mode": "a",
|
||||
"channel": "40",
|
||||
"country_code": "US",
|
||||
"ht_capab": "[HT40+]"}
|
||||
hapd = hostapd.add_ap(apdev[1]['ifname'], params, wait_enabled=False)
|
||||
ev = hapd.wait_event(["AP-DISABLED"], timeout=10)
|
||||
if not ev:
|
||||
raise Exception("AP setup failure timed out")
|
||||
finally:
|
||||
subprocess.call(['iw', 'reg', 'set', '00'])
|
||||
|
|
Loading…
Reference in a new issue