From: Jouni Malinen Date: Wed, 7 Aug 2019 09:34:24 +0000 (+0300) Subject: tests: Fix hostapd.wait_sta() X-Git-Tag: hostap_2_9~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4a9610e8f6269cd2674c1e1b1147727d87b2afc;p=thirdparty%2Fhostap.git tests: Fix hostapd.wait_sta() wait_event() expects a list of events instead of a single event name. The previous implementation of wait_sta() did not really wait for AP-STA-CONNECT; instead, it returned the next event from hostapd regardless of what that event was. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py index db941b6c1..a0b8cac18 100644 --- a/tests/hwsim/hostapd.py +++ b/tests/hwsim/hostapd.py @@ -263,7 +263,7 @@ class Hostapd: return None def wait_sta(self, addr=None, timeout=2): - ev = self.wait_event("AP-STA-CONNECT", timeout=timeout) + ev = self.wait_event(["AP-STA-CONNECT"], timeout=timeout) if ev is None: raise Exception("AP did not report STA connection") if addr and addr not in ev: