summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-04 18:05:59 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-04 18:05:59 +0000
commit523f70c927beeb85bb59d3410206f9f2c810a156 (patch)
treedf9c5bd5b9fd3cf1c3c2c2775e3d7891bd849c37 /modules/admin-full/luasrc
parent1771b0c551fa192b6f3447a5a2114824ce5be21f (diff)
modules/admin-full: allow mac filter only for ap mode interfaces
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua2
1 files changed, 2 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 51b84df22e..2ad3d5513e 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -358,6 +358,8 @@ if hwtype == "mac80211" then
s:taboption("advanced", Value, "rts", translate("RTS/CTS Threshold"))
mp = s:taboption("macfilter", ListValue, "macfilter", translate("MAC-Address Filter"))
+ mp:depends({mode="ap"})
+ mp:depends({mode="ap-wds"})
mp:value("", translate("disable"))
mp:value("allow", translate("Allow listed only"))
mp:value("deny", translate("Allow all except listed"))