summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model/cbi
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2012-10-31 15:58:15 +0000
committerDaniel Golle <daniel@makrotopia.org>2012-10-31 15:58:15 +0000
commit59af400346d15250af5873db66e420592a5b9ff9 (patch)
tree040a4b02f6ea0657f2d648fa2fa884b1c3b0177d /modules/admin-full/luasrc/model/cbi
parente736b9592ca08c189d15eabba6a338972a12bce4 (diff)
wifi: add controls for noscan flag
OpenWrt contains a patch for hostapd which allows to override the channel-bandwidth decission to always use 40MHz regardless of overlapping networks. Though it does not conform with IEEE 802.11n-2009, this became the de-facto standard behaviour of most off-the-shelf wifi routers. Adding this option to LuCI makes it more accessible to users, which probably not everybody will agree with to be a good idea. However, I didn't yet come across a single commercial product which actually complies with 802.11n-2009 in that regard. Signed-off-by: Daniel Golle <dgolle@allnet.de>
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua6
1 files changed, 6 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 f645493a61..6c06b21b4a 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -208,6 +208,12 @@ if hwtype == "mac80211" then
htmode:value("HT40-", translate("40MHz 2nd channel below"))
htmode:value("HT40+", translate("40MHz 2nd channel above"))
+ noscan = s:taboption("advanced", Flag, "noscan", translate("Force 40MHz mode"),
+ translate("Always use 40MHz channels even if the secondary channel overlaps. Using this option does not comply with IEEE 802.11n-2009!"))
+ noscan:depends("htmode", "HT40+")
+ noscan:depends("htmode", "HT40-")
+ noscan.default = noscan.disabled
+
--htcapab = s:taboption("advanced", DynamicList, "ht_capab", translate("HT capabilities"))
--htcapab:depends("hwmode", "11na")
--htcapab:depends("hwmode", "11ng")