luci-mod-admin-full: Add mesh_fwding support
authorSven Roederer <freifunk@it-solutions.geroedel.de>
Tue, 23 Jan 2018 16:18:25 +0000 (18:18 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Tue, 23 Jan 2018 16:18:25 +0000 (18:18 +0200)
* 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)

modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 3b4584bed54644946e6b8bd91f5245f5fa524ee6..851dbee4651f5ff282f50c965c4f93d00260d437 100644 (file)
@@ -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"})