luci-mod-admin-full: "isolate" option is missing for mac80211 1708/head
authorfantom-x <fantom-x@users.noreply.github.com>
Sun, 30 Apr 2017 20:38:45 +0000 (16:38 -0400)
committerguidosarducci <guidosarducci@users.noreply.github.com>
Fri, 30 Mar 2018 04:12:31 +0000 (21:12 -0700)
Signed-off-by: Marc Benoit marcb6218@gmail.com
[Tony Ambardar: backported from aee99ce9 ('luci-mod-admin-full: "isolate"
                option is missing for mac80211')]
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 851dbee4651f5ff282f50c965c4f93d00260d437..969cfed78afcddfd4c97130368cefe55476b2164 100644 (file)
@@ -535,6 +535,10 @@ if hwtype == "mac80211" then
        wmm:depends({mode="ap-wds"})
        wmm.default = wmm.enabled
 
+       isolate = s:taboption("advanced", Flag, "isolate", translate("Isolate Clients"), translate("Prevents client-to-client communication"))
+       isolate:depends({mode="ap"})
+       isolate:depends({mode="ap-wds"})
+
        ifname = s:taboption("advanced", Value, "ifname", translate("Interface name"), translate("Override default interface name"))
        ifname.optional = true
 end