mirror of
https://github.com/openwrt/luci.git
synced 2026-09-02 16:41:53 +04:00
[PATCH] Add regdomain, country and outdoor options for madwifi
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
This commit is contained in:
@@ -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>'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user