From: Ilan Peer Date: Mon, 8 Apr 2024 13:06:55 +0000 (+0300) Subject: tests: Wait after removing a BSS X-Git-Tag: hostap_2_11~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df2c72c5486ca3f2c0b3c71862fba1fed4d3ecd;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py index 007812274..ebb2e328a 100644 --- a/tests/hwsim/hostapd.py +++ b/tests/hwsim/hostapd.py @@ -766,6 +766,9 @@ def remove_bss(apdev, ifname=None): hapd_global = HostapdGlobal(apdev) hapd_global.remove(ifname) + # wait little to make sure the AP stops beaconing + time.sleep(0.1) + def terminate(apdev): try: hostname = apdev['hostname']