Bring device up before scanning

This commit is contained in:
Jan Schneider 2018-03-31 09:48:50 +02:00
parent 205fbbe829
commit 513e22dbf6
1 changed files with 1 additions and 0 deletions

View File

@ -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 ""