summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSven Roederer <freifunk@it-solutions.geroedel.de>2018-01-23 18:18:25 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2018-01-23 18:18:25 +0200
commit3f6a27fbf563a7814566d1a8b41c5626fe91979e (patch)
treeb8e9e05fd44971b611a83e62f3e70ab4f706ec1c
parent33f6527ccf75f4c277649fc3be62c41f98794274 (diff)
luci-mod-admin-full: Add mesh_fwding support
* make it only visible for 802.11s mesh-networks * have it enabled by default Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de> [add empty line before meshfwd assignment] Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 63255ec38b2f5849fec9e54d3f3e2aa7ef76bd72)
-rw-r--r--modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
index 3b4584bed..851dbee46 100644
--- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -414,6 +414,11 @@ mode:value("adhoc", translate("Ad-Hoc"))
meshid = s:taboption("general", Value, "mesh_id", translate("Mesh Id"))
meshid:depends({mode="mesh"})
+meshfwd = s:taboption("advanced", Flag, "mesh_fwding", translate("internal forwarding of Mesh-peers"))
+meshfwd.rmempty = false
+meshfwd.default = "1"
+meshfwd:depends({mode="mesh"})
+
ssid = s:taboption("general", Value, "ssid", translate("<abbr title=\"Extended Service Set Identifier\">ESSID</abbr>"))
ssid.datatype = "maxlength(32)"
ssid:depends({mode="ap"})