From: Florian Eckert Date: Thu, 27 Jun 2019 12:59:14 +0000 (+0200) Subject: luci-proto-qmi: add missing mtu option X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2811%2Fhead;p=oweals%2Fluci.git luci-proto-qmi: add missing mtu option Signed-off-by: Florian Eckert --- diff --git a/protocols/luci-proto-qmi/luasrc/model/cbi/admin_network/proto_qmi.lua b/protocols/luci-proto-qmi/luasrc/model/cbi/admin_network/proto_qmi.lua index 9cc1ae0cf..383bc4662 100644 --- a/protocols/luci-proto-qmi/luasrc/model/cbi/admin_network/proto_qmi.lua +++ b/protocols/luci-proto-qmi/luasrc/model/cbi/admin_network/proto_qmi.lua @@ -4,7 +4,7 @@ local map, section, net = ... local device, apn, pincode, username, password -local auth, ipv6, delay +local auth, ipv6, delay, mtu device = section:taboption("general", Value, "device", translate("Modem device")) @@ -57,3 +57,7 @@ delay = section:taboption("advanced", Value, "delay", translate("Maximum amount of seconds to wait for the modem to become ready")) delay.placeholder = "10" delay.datatype = "min(1)" + +mtu = section:taboption("advanced", Value, "mtu", translate("Override MTU")) +mtu.placeholder = "1500" +mtu.datatype = "max(9200)"