diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-04-25 17:45:59 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-04-25 17:45:59 +0000 |
commit | 0a252c0f8abbd7e66952f67d3858fd376584b704 (patch) | |
tree | 47bf95103d0bafe7ee1492fa20c24133168d4295 /modules | |
parent | 3f66d479313df08bc5709bdd098324c13b3e2eed (diff) |
modules/admin-full: add macfilter options to mac80211 wifi config
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 14 |
1 files changed, 14 insertions, 0 deletions
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 b9f9cd390..d3d1774ff 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -135,6 +135,16 @@ if hwtype == "mac80211" then --htcapab:depends("hwmode", "11ng") end + mp = s:taboption("macfilter", ListValue, "macfilter", translate("MAC-Address Filter")) + mp:value("", translate("disable")) + mp:value("allow", translate("Allow listed only")) + mp:value("deny", translate("Allow all except listed")) + + ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List")) + ml.datatype = "macaddr" + ml:depends({macfilter="allow"}) + ml:depends({macfilter="deny"}) + local cl = iw and iw.countrylist if cl and #cl > 0 then cc = s:taboption("advanced", ListValue, "country", translate("Country Code"), translate("Use ISO/IEC 3166 alpha2 country codes.")) @@ -235,7 +245,9 @@ if hwtype == "broadcom" then mp:value("", translate("disable")) mp:value("allow", translate("Allow listed only")) mp:value("deny", translate("Allow all except listed")) + ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List")) + ml.datatype = "macaddr" ml:depends({macfilter="allow"}) ml:depends({macfilter="deny"}) @@ -436,7 +448,9 @@ if hwtype == "atheros" then mp:value("", translate("disable")) mp:value("deny", translate("Allow listed only")) mp:value("allow", translate("Allow all except listed")) + ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List")) + ml.datatype = "macaddr" ml:depends({macpolicy="allow"}) ml:depends({macpolicy="deny"}) |