From: Ilan Peer Date: Wed, 4 Feb 2015 09:30:13 +0000 (-0500) Subject: tests: Use global control interface in wait_go_ending_session() X-Git-Tag: hostap_2_4~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0d697be91926d9024c218e0de4699e8174e2594;p=thirdparty%2Fhostap.git tests: Use global control interface in wait_go_ending_session() P2P_EVENT_GROUP_REMOVED is a global event, so use wait_global_event() instead of wait_event(). Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 8b693111c..b8d153fcb 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -646,7 +646,7 @@ class WpaSupplicant: except: pass self.gctrl_mon = None - ev = self.wait_event(["P2P-GROUP-REMOVED"], timeout=3) + ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=3) if ev is None: raise Exception("Group removal event timed out") if "reason=GO_ENDING_SESSION" not in ev: