mirror of https://github.com/aredn/aredn.git
Fix monitors not detecting non-mesh mode (#716)
This commit is contained in:
parent
741becfefa
commit
61fa802f80
|
@ -39,7 +39,7 @@ local wifiiface
|
|||
local last_scan_time = 0
|
||||
|
||||
function rssi_monitor_10k()
|
||||
if string.match(get_ifname("wifi"), "^eth.") then
|
||||
if not string.match(get_ifname("wifi"), "^wlan") then
|
||||
exit_app()
|
||||
else
|
||||
wait_for_ticks(math.max(1, 120 - nixio.sysinfo().uptime))
|
||||
|
|
|
@ -39,7 +39,7 @@ local phy
|
|||
local multiple_ant = false
|
||||
|
||||
function rssi_monitor_9k()
|
||||
if string.match(get_ifname("wifi"), "^eth.") then
|
||||
if not string.match(get_ifname("wifi"), "^wlan") then
|
||||
exit_app()
|
||||
else
|
||||
wait_for_ticks(math.max(1, 120 - nixio.sysinfo().uptime))
|
||||
|
|
Loading…
Reference in New Issue