From 629dbdd36a9423b4ada055e5f5cf65a5f2750778 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 27 Dec 2013 08:27:44 +0200 Subject: [PATCH] tests: Wait for AP-ENABLED It takes some time for hostapd to complete AP startup. In some cases, this could potentially result in station starting a scan before the AP is beaconing or ready to reply to probes. To avoid such race conditions, wait for AP-ENABLED before going ahead with the test cases. Signed-hostap: Jouni Malinen --- tests/hwsim/hostapd.py | 6 +++++- tests/hwsim/test_ap_acs.py | 2 +- tests/hwsim/test_ap_ht.py | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py index 12e4a9f86..ada6d6dcb 100644 --- a/tests/hwsim/hostapd.py +++ b/tests/hwsim/hostapd.py @@ -179,7 +179,7 @@ class Hostapd: hdr = struct.pack('