projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/admin-full: fix diversity setting for atheros cards
[project/luci.git]
/
modules
/
admin-full
/
luasrc
/
model
/
cbi
/
admin_network
/
wifi.lua
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 3a52ef3170fd8b33509ccd055746c95225142081..0ed725b613c2b74e5f15e3d0ba651851ed49a871 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@
-62,7
+62,7
@@
end
------------------- Madwifi Device ------------------
if hwtype == "atheros" then
------------------- Madwifi Device ------------------
if hwtype == "atheros" then
- mode = s:option(ListValue, "mode", translate("mode"))
+ mode = s:option(ListValue, "
hw
mode", translate("mode"))
mode:value("", translate("wifi_auto"))
mode:value("11b", "802.11b")
mode:value("11g", "802.11g")
mode:value("", translate("wifi_auto"))
mode:value("11b", "802.11b")
mode:value("11g", "802.11g")
@@
-72,7
+72,7
@@
if hwtype == "atheros" then
mode:value("11adt", "802.11adt")
mode:value("fh", translate("wifi_fh"))
mode:value("11adt", "802.11adt")
mode:value("fh", translate("wifi_fh"))
- s:option(Flag, "diversity", translate("wifi_diversity"))
+ s:option(Flag, "diversity", translate("wifi_diversity"))
.rmempty = false
if not nsantenna then
s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true
if not nsantenna then
s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true
@@
-161,6
+161,7
@@
bssid = s:option(Value, "bssid", translate("wifi_bssid"))
-------------------- MAC80211 Interface ----------------------
if hwtype == "mac80211" then
-------------------- MAC80211 Interface ----------------------
if hwtype == "mac80211" then
+ mode:value("ahdemo", translate("a_w_ahdemo"))
mode:value("monitor", translate("a_w_monitor"))
bssid:depends({mode="adhoc"})
mode:value("monitor", translate("a_w_monitor"))
bssid:depends({mode="adhoc"})