aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/hwsim/hostapd.py2
-rw-r--r--tests/hwsim/wpasupplicant.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py
index a0b8cac..4430d80 100644
--- a/tests/hwsim/hostapd.py
+++ b/tests/hwsim/hostapd.py
@@ -246,6 +246,8 @@ class Hostapd:
logger.debug(self.dbg + ": " + ev)
def wait_event(self, events, timeout):
+ if not isinstance(events, list):
+ raise Exception("Hostapd.wait_event() called with incorrect events argument type")
start = os.times()[4]
while True:
while self.mon.pending():
diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py
index be19637..8c7e13d 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -838,6 +838,8 @@ class WpaSupplicant:
raise Exception("P2P_CONNECT failed")
def _wait_event(self, mon, pfx, events, timeout):
+ if not isinstance(events, list):
+ raise Exception("WpaSupplicant._wait_event() called with incorrect events argument type")
start = os.times()[4]
while True:
while mon.pending():
@@ -864,6 +866,8 @@ class WpaSupplicant:
events, timeout)
def wait_group_event(self, events, timeout=10):
+ if not isinstance(events, list):
+ raise Exception("WpaSupplicant.wait_group_event() called with incorrect events argument type")
if self.group_ifname and self.group_ifname != self.ifname:
if self.gctrl_mon is None:
return None