tests: Wait after removing a BSS
When a BSS is removed, the flow continues without actually waiting for the AP to be stopped. This is racy in flows that actually expect the AP to be stopped, e.g., test_ap_bss_add_remove(). Try to mitigate such cases by adding a short sleep after the AP is removed. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
2bbe4822a6
commit
0df2c72c54
1 changed files with 3 additions and 0 deletions
|
@ -766,6 +766,9 @@ def remove_bss(apdev, ifname=None):
|
||||||
hapd_global = HostapdGlobal(apdev)
|
hapd_global = HostapdGlobal(apdev)
|
||||||
hapd_global.remove(ifname)
|
hapd_global.remove(ifname)
|
||||||
|
|
||||||
|
# wait little to make sure the AP stops beaconing
|
||||||
|
time.sleep(0.1)
|
||||||
|
|
||||||
def terminate(apdev):
|
def terminate(apdev):
|
||||||
try:
|
try:
|
||||||
hostname = apdev['hostname']
|
hostname = apdev['hostname']
|
||||||
|
|
Loading…
Reference in a new issue