module/admin-full: add missing mode+wds -> ap/sta-wds reverse mapping for mac80211 interfaces
This commit is contained in:
parent
1ac4b13246
commit
dc672daf3b
1 changed files with 13 additions and 0 deletions
|
@ -344,6 +344,19 @@ if wnet then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function mode.cfgvalue(self, section)
|
||||||
|
local mode = ListValue.cfgvalue(self, section)
|
||||||
|
local wds = m.uci:get("wireless", section, "wds") == "1"
|
||||||
|
|
||||||
|
if mode == "ap" and wds then
|
||||||
|
return "ap-wds"
|
||||||
|
elseif mode == "sta" and wds then
|
||||||
|
return "sta-wds"
|
||||||
|
else
|
||||||
|
return mode
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
hidden = s:taboption("general", Flag, "hidden", translate("Hide <abbr title=\"Extended Service Set Identifier\">ESSID</abbr>"))
|
hidden = s:taboption("general", Flag, "hidden", translate("Hide <abbr title=\"Extended Service Set Identifier\">ESSID</abbr>"))
|
||||||
hidden:depends({mode="ap"})
|
hidden:depends({mode="ap"})
|
||||||
hidden:depends({mode="ap-wds"})
|
hidden:depends({mode="ap-wds"})
|
||||||
|
|
Loading…
Reference in a new issue