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
var toggle = document.getElementById(iw.id + '-iw-toggle');
if (toggle)
{
- if (is_assoc)
+ if (!iw.disabled)
{
toggle.className = 'cbi-button cbi-button-reset';
toggle.value = '<%:Disable%>';
toggle.title = '<%:Activate this network%>';
}
- toggle.setAttribute('active', is_assoc);
+ toggle.setAttribute('active', !iw.disabled);
}
var info = document.getElementById(iw.id + '-iw-status');