tests: Clear regulatory domain on the correct remote device
In case we run remote tests we need to clear/set regulatory domain on the correct device. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
This commit is contained in:
parent
12a508a11f
commit
fbf877b012
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ def clear_regdom_dev(dev, count=1):
|
||||||
dev[i].request("DISCONNECT")
|
dev[i].request("DISCONNECT")
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
dev[i].disconnect_and_stop_scan()
|
dev[i].disconnect_and_stop_scan()
|
||||||
subprocess.call(['iw', 'reg', 'set', '00'])
|
dev[0].cmd_execute(['iw', 'reg', 'set', '00'])
|
||||||
wait_regdom_changes(dev[0])
|
wait_regdom_changes(dev[0])
|
||||||
country = dev[0].get_driver_status_field("country")
|
country = dev[0].get_driver_status_field("country")
|
||||||
logger.info("Country code at the end: " + country)
|
logger.info("Country code at the end: " + country)
|
||||||
|
|
Loading…
Reference in a new issue