diff mbox series

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

Message ID 20200926112700.6055-6-janusz.dziedzic@gmail.com
State Accepted
Headers show
Series [1/9] tests: remote: sort tests correctly | expand

Commit Message

Janusz Dziedzic Sept. 26, 2020, 11:26 a.m. UTC
Unblock wifi rfkill before setup/run monitor

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

Patch

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'],