From: Janusz Dziedzic Date: Sun, 8 Mar 2020 13:27:03 +0000 (+0100) Subject: tests: Clear regulatory domain on the correct remote device X-Git-Tag: hostap_2_10~1641 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbf877b012b159abfb8454973f221e556c145429;p=thirdparty%2Fhostap.git 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 --- 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)