modules/admin-full: fix assoc state check for sta mode in wifi overview
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2014 13:34:56 +0000 (13:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2014 13:34:56 +0000 (13:34 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/admin-full/luasrc/view/admin_network/wifi_overview.htm

index d528876..d10ea26 100644 (file)
@@ -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];
                                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;
 
                                        var p = iw.quality;
                                        var q = is_assoc ? p : -1;