aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/wpasupplicant.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/wpasupplicant.py')
-rw-r--r--tests/hwsim/wpasupplicant.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py
index 1064d2c..bfa0b2b 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -1319,3 +1319,14 @@ class WpaSupplicant:
def note(self, txt):
self.request("NOTE " + txt)
+
+ def wait_regdom(self, country_ie=False):
+ for i in range(5):
+ ev = self.wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)
+ if ev is None:
+ break
+ if country_ie:
+ if "init=COUNTRY_IE" in ev:
+ break
+ else:
+ break