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: