From 1c7cc8501c0b54cc7565d5c2be10dd595c92fac1 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 19 Sep 2008 10:42:18 +0000 Subject: Fixed a typo for broadcom maclist, Improved general maclist handling --- modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/admin-full/luasrc/model/cbi') 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"}) -- cgit v1.2.3