Avoid race condition with TX status reporting for the broadcast
Deauthentication frame. This could be delivered after the SET command
for ext_mgmt_frame_handled=1 and as such, could result in an
MGMT-TX-STATUS event that would confuse the next step in the test.
Signed-off-by: Jouni Malinen <j@w1.fi>
hapd = hostapd.add_ap(apdev[0], {"ssid": "open",
"ap_max_inactivity": "1"})
hapd.set("ext_mgmt_frame_handling", "1")
+
+ # Avoid race condition with TX status reporting for the broadcast
+ # Deauthentication frame.
+ hapd.wait_event(["MGMT-TX-STATUS"], timeout=0.1)
+
bssid = hapd.own_addr()
addr = "02:01:02:03:04:05"
frame = "b0003a01" + bssid.replace(':', '') + addr.replace(':', '') + bssid.replace(':', '') + "1000" + "000001000000"