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 d52887645ca5d6eadfff82b59d870404a912c8be..d10ea26841f6f0ab3ac5cd9d45d19925c4e55973 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];
-                                       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;