modules/admin-full: allow mac filter only for ap mode interfaces
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 4 Oct 2011 18:05:59 +0000 (18:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 4 Oct 2011 18:05:59 +0000 (18:05 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 51b84df22efc03f892ed0a66b550598fe1a888e2..2ad3d5513e96047351bd3d1147e93ded732ab18e 100644 (file)
@@ -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"))