From: Sven Roederer Date: Mon, 8 Jan 2018 19:35:10 +0000 (+0100) Subject: luci-mod-admin-full: Add mesh_fwding support X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=63255ec38b2f5849fec9e54d3f3e2aa7ef76bd72;hp=08b40acc4e63b203ea4e3577f6e853f20bdfc864 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 [add empty line before meshfwd assignment] Signed-off-by: Jo-Philipp Wich --- 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 ea4b016dc..e8d43a1ba 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 @@ -356,6 +356,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("ESSID")) ssid.datatype = "maxlength(32)" ssid:depends({mode="ap"})