]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Wait a bit after radio work start in dpp_listen()
authorJouni Malinen <j@w1.fi>
Sat, 9 Dec 2023 14:48:27 +0000 (16:48 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Dec 2023 17:02:38 +0000 (19:02 +0200)
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>
tests/hwsim/wpasupplicant.py

index b9764baffb6320dbf6ca42829a76523ff00d2242..8e866429903aace56da4373c2365f5fc41bdfd6d 100644 (file)
@@ -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")