diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-09 01:19:28 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-09 01:19:28 +0000 |
commit | dc672daf3bc08e5013b8b521004c71309887f803 (patch) | |
tree | ca8fdf6854a7f53e9d710a3d8362f4bdfefc1fce /modules/admin-full/luasrc | |
parent | 1ac4b1324650068f86d2a0cfed5ecbebe3d8d7dc (diff) |
module/admin-full: add missing mode+wds -> ap/sta-wds reverse mapping for mac80211 interfaces
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index 098a3a26b..8aaf591b7 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -343,6 +343,19 @@ if wnet then m.uci:delete("wireless", section, "wds") 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:depends({mode="ap"}) |