tests: Enable full testing for ACS with VHT160
This is now supported in hostapd, so drop the option to fail to start the AP. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6ef0614b36
commit
1bacafce4e
1 changed files with 15 additions and 12 deletions
|
@ -354,6 +354,7 @@ def test_ap_acs_vht160(dev, apdev):
|
||||||
params['hw_mode'] = 'a'
|
params['hw_mode'] = 'a'
|
||||||
params['channel'] = '0'
|
params['channel'] = '0'
|
||||||
params['ht_capab'] = '[HT40+]'
|
params['ht_capab'] = '[HT40+]'
|
||||||
|
params["vht_capab"] = "[VHT160]"
|
||||||
params['country_code'] = 'ZA'
|
params['country_code'] = 'ZA'
|
||||||
params['ieee80211ac'] = '1'
|
params['ieee80211ac'] = '1'
|
||||||
params['vht_oper_chwidth'] = '2'
|
params['vht_oper_chwidth'] = '2'
|
||||||
|
@ -361,18 +362,20 @@ def test_ap_acs_vht160(dev, apdev):
|
||||||
params['ieee80211h'] = '1'
|
params['ieee80211h'] = '1'
|
||||||
params['chanlist'] = '100'
|
params['chanlist'] = '100'
|
||||||
params['acs_num_scans'] = '1'
|
params['acs_num_scans'] = '1'
|
||||||
hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
|
hapd = hostapd.add_ap(apdev[0], params)
|
||||||
ev = hapd.wait_event(["AP-ENABLED", "AP-DISABLED"], timeout=10)
|
freq = hapd.get_status_field("freq")
|
||||||
if not ev:
|
if int(freq) < 5000:
|
||||||
raise Exception("ACS start timed out")
|
raise Exception("Unexpected frequency")
|
||||||
# VHT160 is not currently supported in hostapd ACS, so do not try to
|
dev[0].connect("test-acs", psk="12345678", scan_freq=freq)
|
||||||
# enforce successful AP start.
|
dev[0].wait_regdom(country_ie=True)
|
||||||
if "AP-ENABLED" in ev:
|
hapd.wait_sta()
|
||||||
freq = hapd.get_status_field("freq")
|
sig = dev[0].request("SIGNAL_POLL").splitlines()
|
||||||
if int(freq) < 5000:
|
logger.info("SIGNAL_POLL: " + str(sig))
|
||||||
raise Exception("Unexpected frequency")
|
if "WIDTH=160 MHz" not in sig:
|
||||||
dev[0].connect("test-acs", psk="12345678", scan_freq=freq)
|
raise Exception("Station did not report 160 MHz bandwidth")
|
||||||
dev[0].wait_regdom(country_ie=True)
|
dev[0].request("DISCONNECT")
|
||||||
|
dev[0].wait_disconnected()
|
||||||
|
hapd.wait_sta_disconnect()
|
||||||
finally:
|
finally:
|
||||||
clear_regdom(hapd, dev)
|
clear_regdom(hapd, dev)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue