summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-07 14:18:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-07 14:18:43 +0000
commite4d0d97fbbbe578a9d1d4524ccc61949b98305b0 (patch)
treebae32ab42d4388b863fedbebf0c3d31c9c46c433
parent00f1c31b8bd70585b9954aaa41ce6f6b46e543bd (diff)
[PATCH] Add regdomain, country and outdoor options for madwifi
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
-rw-r--r--i18n/english/luasrc/i18n/wifi.en.lua2
-rw-r--r--modules/admin-core/root/lib/uci/schema/default/wireless16
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua3
3 files changed, 20 insertions, 1 deletions
diff --git a/i18n/english/luasrc/i18n/wifi.en.lua b/i18n/english/luasrc/i18n/wifi.en.lua
index 47859b3db..1c4bc6097 100644
--- a/i18n/english/luasrc/i18n/wifi.en.lua
+++ b/i18n/english/luasrc/i18n/wifi.en.lua
@@ -10,7 +10,9 @@ wifi_whitelist = 'Allow listed only'
wifi_blacklist = 'Allow all except listed'
wifi_maclist = 'MAC-List'
wifi_bursting = 'Frame Bursting'
+wifi_regdomain = 'Regulatory Domain'
wifi_country = 'Country Code'
+wifi_outdoor = 'Outdoor Channels'
wifi_maxassoc = 'Connection Limit'
wifi_essid = '<abbr title="Extended Service Set Identifier">ESSID</abbr>'
wifi_bssid = '<abbr title="Basic Service Set Identifier">BSSID</abbr>'
diff --git a/modules/admin-core/root/lib/uci/schema/default/wireless b/modules/admin-core/root/lib/uci/schema/default/wireless
index 7e720490c..bd466d1f2 100644
--- a/modules/admin-core/root/lib/uci/schema/default/wireless
+++ b/modules/admin-core/root/lib/uci/schema/default/wireless
@@ -146,10 +146,24 @@ config variable
list depends 'type=broadcom'
config variable
+ option name 'regdomain'
+ option section 'wireless.wifi-device'
+ option title 'Regulatory Domain'
+ list depends 'type=atheros'
+
+config variable
option name 'country'
option section 'wireless.wifi-device'
- option title 'Country Code (broadcom)'
+ option title 'Country Code'
list depends 'type=broadcom'
+ list depends 'type=atheros'
+
+config variable
+ option name 'outdoor'
+ option section 'wireless.wifi-device'
+ option title 'Outdoor Channels'
+ option datatype boolean
+ list depends 'type=atheros'
config variable
option name 'maxassoc'
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 72c79b68c..678386678 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -89,6 +89,9 @@ if hwtype == "atheros" then
end
s:option(Value, "distance", translate("wifi_distance"),
translate("wifi_distance_desc")).optional = true
+ s:option(Value, "regdomain", translate("wifi_regdomain")).optional = true
+ s:option(Value, "country", translate("wifi_country")).optional = true
+ s:option(Flag, "outdoor", translate("wifi_outdoor")).optional = true
--s:option(Flag, "nosbeacon", translate("wifi_nosbeacon")).optional = true
end