From: Steven Barth Date: Fri, 19 Sep 2008 10:44:45 +0000 (+0000) Subject: Fixed a typo for broadcom maclist, Improved general maclist handling X-Git-Tag: 0.8.0~55 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=58052671641de7728ae66e19954d0dc7cd2f03c1;p=project%2Fluci.git Fixed a typo for broadcom maclist, Improved general maclist handling --- diff --git a/libs/uvl/root/lib/uci/schema/default/wireless b/libs/uvl/root/lib/uci/schema/default/wireless index d148b9b335..3b4fb6fe8b 100644 --- a/libs/uvl/root/lib/uci/schema/default/wireless +++ b/libs/uvl/root/lib/uci/schema/default/wireless @@ -104,19 +104,19 @@ config variable list depends type=broadcom config variable - option name 'macpolicy' + option name 'macfilter' option section 'wireless.wifi-device' option title 'MAC-Address Filter (broadcom)' option type enum list depends type=broadcom config enum - option variable 'wireless.wifi-device.macpolicy' + option variable 'wireless.wifi-device.macfilter' option value 'deny' option title 'Allow listed only' config enum - option variable 'wireless.wifi-device.macpolicy' + option variable 'wireless.wifi-device.macfilter' option value 'allow' option title 'Allow all except listed' @@ -124,9 +124,9 @@ config variable option name 'maclist' option section 'wireless.wifi-device' option title 'MAC-List (broadcom)' - list depends 'type=broadcom, macpolicy=allow' - list depends 'type=broadcom, macpolicy=deny' - option multival true + list depends 'type=broadcom, macfilter=allow' + list depends 'type=broadcom, macfilter=deny' + option type lazylist option datatype macaddr config variable @@ -308,6 +308,8 @@ config variable option title 'MAC-List (atheros)' list depends 'macpolicy=allow' list depends 'macpolicy=deny' + option type lazylist + option datatype macaddr config variable option name 'rate' 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 cbc30d5c37..b687133ced 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -79,14 +79,14 @@ end ------------------- Broadcom Device ------------------ if hwtype == "broadcom" then - mp = s:option(ListValue, "macpolicy", translate("wifi_macpolicy")) + mp = s:option(ListValue, "macfilter", translate("wifi_macpolicy")) mp.optional = true mp:value("") mp:value("deny", translate("wifi_whitelist")) mp:value("allow", translate("wifi_blacklist")) - ml = s:option(Value, "maclist", translate("wifi_maclist")) - ml:depends({macpolicy="allow"}) - ml:depends({macpolicy="deny"}) + ml = s:option(DynamicList, "maclist", translate("wifi_maclist")) + ml:depends({macfilter="allow"}) + ml:depends({macfilter="deny"}) s:option(Value, "txant", translate("wifi_txantenna")).optional = true s:option(Value, "rxant", translate("wifi_rxantenna")).optional = true @@ -190,7 +190,7 @@ if hwtype == "atheros" then mp:value("") mp:value("deny", translate("wifi_whitelist")) mp:value("allow", translate("wifi_blacklist")) - ml = s:option(Value, "maclist", translate("wifi_maclist")) + ml = s:option(DynamicList, "maclist", translate("wifi_maclist")) ml:depends({macpolicy="allow"}) ml:depends({macpolicy="deny"})