[PATCH 2/3] tests: clear regdm on correct device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In case we run remote test case we
need to clear/set regdm on correct
device.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@xxxxxxxxx>
---
 tests/hwsim/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/utils.py b/tests/hwsim/utils.py
index b3a883131..fdd95eebf 100644
--- a/tests/hwsim/utils.py
+++ b/tests/hwsim/utils.py
@@ -162,7 +162,7 @@ def clear_regdom_dev(dev, count=1):
         dev[i].request("DISCONNECT")
     for i in range(count):
         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])
     country = dev[0].get_driver_status_field("country")
     logger.info("Country code at the end: " + country)
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux