From 61fa802f805083f40b512b4989835e87a63864d2 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Fri, 17 Feb 2023 21:02:21 -0800 Subject: [PATCH] Fix monitors not detecting non-mesh mode (#716) --- files/usr/local/bin/mgr/rssi_monitor_ath10k.lua | 2 +- files/usr/local/bin/mgr/rssi_monitor_ath9k.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/usr/local/bin/mgr/rssi_monitor_ath10k.lua b/files/usr/local/bin/mgr/rssi_monitor_ath10k.lua index 054b9351..74f704d2 100644 --- a/files/usr/local/bin/mgr/rssi_monitor_ath10k.lua +++ b/files/usr/local/bin/mgr/rssi_monitor_ath10k.lua @@ -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)) diff --git a/files/usr/local/bin/mgr/rssi_monitor_ath9k.lua b/files/usr/local/bin/mgr/rssi_monitor_ath9k.lua index 00ca699c..1b2f7d8d 100644 --- a/files/usr/local/bin/mgr/rssi_monitor_ath9k.lua +++ b/files/usr/local/bin/mgr/rssi_monitor_ath9k.lua @@ -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))