From: Daniel Golle Date: Wed, 31 Oct 2012 15:58:15 +0000 (+0000) Subject: wifi: add controls for noscan flag X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=59af400346d15250af5873db66e420592a5b9ff9 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 --- 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 f645493a6..6c06b21b4 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")