From c4a9610e8f6269cd2674c1e1b1147727d87b2afc Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 7 Aug 2019 12:34:24 +0300 Subject: [PATCH] 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 --- tests/hwsim/hostapd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: