From fbf877b012b159abfb8454973f221e556c145429 Mon Sep 17 00:00:00 2001 From: Janusz Dziedzic Date: Sun, 8 Mar 2020 14:27:03 +0100 Subject: [PATCH] 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 --- 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)