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>
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")