[PATCH] Add regdomain, country and outdoor options for madwifi
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 7 May 2009 14:18:43 +0000 (14:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 7 May 2009 14:18:43 +0000 (14:18 +0000)
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
i18n/english/luasrc/i18n/wifi.en.lua
modules/admin-core/root/lib/uci/schema/default/wireless
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 47859b3dbe9d3e79daa05ed34fbe2c1a2643fa13..1c4bc609741a173efc7b74bf45e5bde3607779c4 100644 (file)
@@ -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>'
index 7e720490c36a67c5dfc5f7603aa9575959c922ce..bd466d1f2e0944ed6c1c6d5856e2bf79e836b4fb 100644 (file)
@@ -145,11 +145,25 @@ config variable
        option datatype boolean
        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'
index 72c79b68c3ff1df32c6e36351dabefc9c1cf5a83..678386678fcefc44c650963c8ad6a0e4e69f953a 100644 (file)
@@ -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