When editing an AP wireless network in LuCI, if one or more STA networks are also...
authorGeorgi Valkov <gvalkov@abv.bg>
Fri, 17 Jul 2015 17:03:58 +0000 (20:03 +0300)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Jul 2015 09:37:09 +0000 (11:37 +0200)
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua

index dd619b31430740105ea2993c15d7a089ea753fb8..9a2bd5d2011ae3b5c4567df3e0d31a957747389f 100644 (file)
@@ -143,7 +143,7 @@ local found_sta = nil
 local _, net
 if wnet:mode() ~= "sta" then
        for _, net in ipairs(wdev:get_wifinets()) do
-               if net:mode() == "sta" then
+               if net:mode() == "sta" and net:get("disabled") ~= "1" then
                        if not found_sta then
                                found_sta = {}
                                found_sta.channel = net:channel()