1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Bring device up before scanning

This commit is contained in:
Jan Schneider 2018-03-31 09:48:50 +02:00
parent 205fbbe829
commit 513e22dbf6

View File

@ -1550,6 +1550,7 @@ proc ::rmupdate::wlan_scan {{as_json 0} {device "wlan0"}} {
array set ssids {} array set ssids {}
catch { exec rfkill unblock 0 } catch { exec rfkill unblock 0 }
catch { exec rfkill unblock 1 } catch { exec rfkill unblock 1 }
catch { exec ip link set $device up }
set data [exec /usr/sbin/iw $device scan] set data [exec /usr/sbin/iw $device scan]
set cur_ssid "" set cur_ssid ""
set cur_signal "" set cur_signal ""