luci-proto-qmi: add missing mtu option 2811/head
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 27 Jun 2019 12:59:14 +0000 (14:59 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 1 Jul 2019 08:20:13 +0000 (10:20 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
protocols/luci-proto-qmi/luasrc/model/cbi/admin_network/proto_qmi.lua

index 9cc1ae0cf583ad51e584b784d24ba9fdf8a73a05..383bc4662f7a729b4156341159d18997679b9554 100644 (file)
@@ -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)"