From e4d0d97fbbbe578a9d1d4524ccc61949b98305b0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 7 May 2009 14:18:43 +0000 Subject: [PATCH] Add regdomain, country and outdoor options for madwifi Signed-off-by: Vasilis Tsiligiannis --- modules/admin-core/root/lib/uci/schema/default/wireless | 16 +++++++++++++++- .../admin-full/luasrc/model/cbi/admin_network/wifi.lua | 3 +++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'modules') 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 @@ -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' 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 -- cgit v1.2.3