From 523f70c927beeb85bb59d3410206f9f2c810a156 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 4 Oct 2011 18:05:59 +0000 Subject: modules/admin-full: allow mac filter only for ap mode interfaces --- modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') 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 51b84df22..2ad3d5513 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")) -- cgit v1.2.3