From: Jouni Malinen Date: Sat, 9 Dec 2023 14:48:27 +0000 (+0200) Subject: tests: Wait a bit after radio work start in dpp_listen() X-Git-Tag: hostap_2_11~696 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e521477a387a9ba2e22ff735dc2b84a86a22cc10;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index b9764baff..8e8664299 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -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")