From 513e22dbf6eea28d0d4eb6b874d3cf2542388489 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sat, 31 Mar 2018 09:48:50 +0200 Subject: [PATCH] Bring device up before scanning --- addon/lib/rmupdate.tcl | 1 + 1 file changed, 1 insertion(+) diff --git a/addon/lib/rmupdate.tcl b/addon/lib/rmupdate.tcl index ab88392..ed68945 100644 --- a/addon/lib/rmupdate.tcl +++ b/addon/lib/rmupdate.tcl @@ -1550,6 +1550,7 @@ proc ::rmupdate::wlan_scan {{as_json 0} {device "wlan0"}} { array set ssids {} catch { exec rfkill unblock 0 } catch { exec rfkill unblock 1 } + catch { exec ip link set $device up } set data [exec /usr/sbin/iw $device scan] set cur_ssid "" set cur_signal ""