From: Steven Barth Date: Tue, 19 Aug 2008 18:20:57 +0000 (+0000) Subject: modules/admin-*: Added hints for Wifi Channels X-Git-Tag: 0.8.0~344 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4db21391164842ce28193b4d5fac8b62e6d9a521;p=oweals%2Fluci.git modules/admin-*: Added hints for Wifi Channels --- 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 3717c5b5b..e53fb14fd 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -37,7 +37,20 @@ mode:value("11a", "802.11a") mode:value("11bg", "802.11b+g") mode.rmempty = true -s:option(Value, "channel", translate("a_w_channel")) +ch = s:option(Value, "channel", translate("a_w_channel")) +for i=1, 14 do + ch:value(i, i .. " (2.4 GHz)") +end +for i=36, 64, 4 do + ch:value(i, i .. " (5 GHz)") +end +for i=100, 140, 4 do + ch:value(i, i .. " (5 GHz)") +end +ch:value(147, 147 .. " (5 GHz)") +ch:value(151, 151 .. " (5 GHz)") +ch:value(155, 155 .. " (5 GHz)") +ch:value(167, 167 .. " (5 GHz)") s:option(Value, "txantenna", translate("a_w_txantenna")).optional = true diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua index c293175b6..95407be85 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua @@ -136,8 +136,10 @@ mode:value("11a", "802.11a") mode:value("11bg", "802.11b+g") mode.rmempty = true -s:option(Value, "channel", translate("a_w_channel")) - +ch = s:option(Value, "channel", translate("a_w_channel")) +for i=1, 14 do + ch:value(i, i .. " (2.4 GHz)") +end s = m:section(TypedSection, "wifi-iface", translate("m_n_local"))