]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear regulatory domain on the correct remote device
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Sun, 8 Mar 2020 13:27:03 +0000 (14:27 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 15:13:47 +0000 (17:13 +0200)
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>
tests/hwsim/utils.py

index b3a8831317db6a1947ae92a0fc988da7397efbb9..fdd95eebf582ce650d37aa51831fc6f83cbb8cbb 100644 (file)
@@ -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)