diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-01 22:19:05 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-01 22:19:05 +0000 |
commit | bea6a5b7f63aa82e1b42d003294b30031d045ff3 (patch) | |
tree | 13da963f0b70054238973c003ad05131a2f8efe1 /modules/admin-full | |
parent | a60f781bdf6ff4b4d117fd1dfe54c8a664c5bfaf (diff) |
modules/admin-full: properly cover static wds mode on madwifi
Diffstat (limited to 'modules/admin-full')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 5 |
1 files changed, 4 insertions, 1 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 0ad4362c0..67cb8a8c8 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -292,6 +292,7 @@ if wnet then mode:value("monitor", translate("Monitor")) mode:value("ap-wds", "%s (%s)" % {translate("Access Point"), translate("WDS")}) mode:value("sta-wds", "%s (%s)" % {translate("Client"), translate("WDS")}) + mode:value("wds", translate("Static WDS")) function mode.write(self, section, value) if value == "ap-wds" then @@ -321,6 +322,7 @@ if wnet then bssid:depends({mode="adhoc"}) bssid:depends({mode="ahdemo"}) + bssid:depends({mode="wds"}) wdssep = s:taboption("advanced", Flag, "wdssep", translate("Separate WDS")) wdssep:depends({mode="ap-wds"}) @@ -427,6 +429,7 @@ if wnet then encr = s:taboption("encryption", ListValue, "encryption", translate("Encryption")) encr.override_values = true + encr.override_depends = true encr:depends({mode="ap"}) encr:depends({mode="sta"}) encr:depends({mode="adhoc"}) @@ -436,7 +439,7 @@ if wnet then encr:depends({mode="mesh"}) encr:value("none", "No Encryption") - encr:value("wep", "WEP") + encr:value("wep", "WEP", {mode="ap"}, {mode="sta"}, {mode="ap-wds"}, {mode="sta-wds"}) if hwtype == "atheros" or hwtype == "mac80211" or hwtype == "prism2" then local supplicant = fs.access("/usr/sbin/wpa_supplicant") |