mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Check for AP-DISABLED when setting up AP
This allows a critical error to be noticed more quickly and reported more clearly in the test log. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
0f23a5e7d6
commit
f8ad9dc21a
@ -257,9 +257,11 @@ def add_ap(ifname, params, wait_enabled=True):
|
||||
hapd.set(f, v)
|
||||
hapd.enable()
|
||||
if wait_enabled:
|
||||
ev = hapd.wait_event(["AP-ENABLED"], timeout=30)
|
||||
ev = hapd.wait_event(["AP-ENABLED", "AP-DISABLED"], timeout=30)
|
||||
if ev is None:
|
||||
raise Exception("AP startup timed out")
|
||||
if "AP-ENABLED" not in ev:
|
||||
raise Exception("AP startup failed")
|
||||
return hapd
|
||||
|
||||
def add_bss(phy, ifname, confname, ignore_error=False):
|
||||
|
Loading…
Reference in New Issue
Block a user