When editing an AP wireless network in LuCI, if one or more STA networks are also present on the same radio, then the channel is locked and cannot be changed for the AP. The case when all STA networks are disabled is not considered. This patch fixes the issue. Disabled networks no longer apply a lock on the channel.
This commit is contained in:
parent
7d1ed597c3
commit
5d71ab50fb
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue