modules/admin-full: make wifi enabling/disabling more reliable
[project/luci.git] / modules / admin-full / luasrc / view / admin_network / wifi_overview.htm
index 91d2ff4..312fd08 100644 (file)
@@ -36,6 +36,7 @@ You may obtain a copy of the License at
                                if bl.b then bands = bands .. "b" end
                                if bl.g then bands = bands .. "g" end
                                if bl.n then bands = bands .. "n" end
+                               if bl.ac then bands = bands .. "ac" end
                        end
 
                        local hw = dev.iwinfo.hardware_name
@@ -231,7 +232,7 @@ You may obtain a copy of the License at
                                                        toggle.title = '<%:Activate this network%>';
                                                }
 
-                                               toggle.setAttribute('active', is_assoc);
+                                               toggle.setAttribute('active', !iw.disabled);
                                        }
 
                                        var info = document.getElementById(iw.id + '-iw-status');