tests: Change set_country() to use the global interface to get event
This is required for cases that multiple interfaces are used and the event can happen on any of them, for example when a dedicated P2P Device interface is used. Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
This commit is contained in:
parent
91d3483273
commit
eb1d68eff0
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ def set_country(country, dev=None):
|
|||
time.sleep(0.1)
|
||||
if dev:
|
||||
for i in range(10):
|
||||
ev = dev.wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=15)
|
||||
ev = dev.wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=15)
|
||||
if ev is None:
|
||||
raise Exception("No regdom change event seen")
|
||||
if "type=COUNTRY alpha2=" + country in ev:
|
||||
|
|
Loading…
Reference in a new issue