From: Jo-Philipp Wich Date: Fri, 3 Oct 2014 13:34:56 +0000 (+0000) Subject: modules/admin-full: fix assoc state check for sta mode in wifi overview X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cee38c117770ba76604778d3940ba7d354abd1a4;p=oweals%2Fluci.git modules/admin-full: fix assoc state check for sta mode in wifi overview Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index d52887645..d10ea2684 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -187,7 +187,7 @@ You may obtain a copy of the License at for( var i = 0; i < st.length; i++ ) { var iw = st[i]; - var is_assoc = (iw.bssid && iw.bssid != '00:00:00:00:00:00' && iw.channel); + var is_assoc = (iw.bssid && iw.bssid != '00:00:00:00:00:00' && iw.channel && iw.mode != 'Unknown'); var p = iw.quality; var q = is_assoc ? p : -1;