tests: Wait a bit after radio work start in dpp_listen()
Even though the radio work has started here, kernel might not have started ROC (i.e., the REMAIN_ON_CHANNEL event has not yet been received). Wait a bit to increase likelihood of everything being ready for the following DPP operation. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c3c326d2a1
commit
e521477a38
1 changed files with 1 additions and 0 deletions
|
@ -1556,6 +1556,7 @@ class WpaSupplicant:
|
|||
work_started = "dpp-listen@" + self.ifname + ":" + str(freq) + ":1"
|
||||
for i in range(10):
|
||||
if work_started in self.request("RADIO_WORK show"):
|
||||
time.sleep(0.0005)
|
||||
return
|
||||
time.sleep(0.01)
|
||||
raise Exception("Failed to start DPP listen work")
|
||||
|
|
Loading…
Reference in a new issue