summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2014-10-10 18:44:45 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2014-10-10 18:46:15 +0200
commit0c3398c4b6d7ecf5d743e4c8bc84388f93cf222f (patch)
tree2e98ca2dfc8d1a9d6c9224641a79fc1e4b32580c /modules
parentbb388f0873b5f9b88c45af5c7d35e9eb9f4ac8ac (diff)
modules/admin-full: fix support for broadcom-wl modes
This adds N modes support for proprietary Broadcom WiFi driver and adds a/b/g modes detection. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua23
1 files changed, 19 insertions, 4 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 f6becf0f4..7d84d2961 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -353,10 +353,25 @@ if hwtype == "broadcom" then
end
mode = s:taboption("advanced", ListValue, "hwmode", translate("Mode"))
- mode:value("11bg", "802.11b+g")
- mode:value("11b", "802.11b")
- mode:value("11g", "802.11g")
- mode:value("11gst", "802.11g + Turbo")
+ if hw_modes.n then
+ if hw_modes.g then mode:value("11ng", "802.11g+n") end
+ if hw_modes.a then mode:value("11na", "802.11a+n") end
+ mode:value("11n", "802.11n")
+
+ htmode = s:taboption("advanced", ListValue, "htmode", translate("HT mode (802.11n)"))
+ htmode:depends("hwmode", "11n")
+ htmode:depends("hwmode", "11ng")
+ htmode:depends("hwmode", "11na")
+ htmode:value("HT20", "20MHz")
+ htmode:value("HT40-", translate("40MHz 2nd channel below"))
+ htmode:value("HT40+", translate("40MHz 2nd channel above"))
+ end
+ if hw_modes.a then mode:value("11a", "802.11a") end
+ if hw_modes.b and hw_modes.g then mode:value("11bg", "802.11b+g") end
+ if hw_modes.b then mode:value("11b", "802.11b") end
+ if hw_modes.g then mode:value("11g", "802.11g") end
+ if hw_modes.g then mode:value("11gst", "802.11g Turbo") end
+ if hw_modes.g then mode:value("11lrs", "802.11g Limited Rate Support") end
ant1 = s:taboption("advanced", ListValue, "txantenna", translate("Transmitter Antenna"))
ant1.widget = "radio"