]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: remote: Unblock rfkill on monitor
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Sat, 26 Sep 2020 11:26:57 +0000 (13:26 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 9 Oct 2020 08:18:30 +0000 (11:18 +0300)
Unblock wifi rfkill before setup/run monitor.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
tests/remote/monitor.py

index 96dbc6564d909b8c8e30c1903ec7b81b5e7b1c23..a97eaf92892a7ff8f0db4e0da378084b32e65c8f 100644 (file)
@@ -63,6 +63,7 @@ def setup(host, monitor_params):
             logger.debug(traceback.format_exc())
             break
         host.execute(["ifconfig", iface, " down"])
+        host.execute(["rfkill", "unblock", "wifi"])
         host.execute(["iw", iface, "set type monitor"])
         host.execute(["ifconfig", iface, "up"])
         status, buf = host.execute(["iw", iface, "set", "freq", param['freq'],