[PATCH 6/9] tests: remote: monitor unblock rfkill

Janusz Dziedzic janusz.dziedzic at gmail.com
Sat Sep 26 07:26:57 EDT 2020


Unblock wifi rfkill before setup/run monitor

Signed-off-by: Janusz Dziedzic <janusz.dziedzic at gmail.com>
---
 tests/remote/monitor.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/remote/monitor.py b/tests/remote/monitor.py
index 96dbc6564..a97eaf928 100644
--- a/tests/remote/monitor.py
+++ b/tests/remote/monitor.py
@@ -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'],
-- 
2.17.1




More information about the Hostap mailing list