tests: Wait for AP-ENABLED
It takes some time for hostapd to complete AP startup. In some cases, this could potentially result in station starting a scan before the AP is beaconing or ready to reply to probes. To avoid such race conditions, wait for AP-ENABLED before going ahead with the test cases. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
629edfef81
commit
629dbdd36a
3 changed files with 8 additions and 4 deletions
|
@ -42,7 +42,7 @@ def test_ap_acs(dev, apdev):
|
|||
"""Automatic channel selection"""
|
||||
params = hostapd.wpa2_params(ssid="test-acs", passphrase="12345678")
|
||||
params['channel'] = '0'
|
||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params, wait_enabled=False)
|
||||
wait_acs(hapd)
|
||||
|
||||
freq = hapd.get_status_field("freq")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue