From eb0c5c04e8fa55214d8d48b28a0a2d6db524d5e0 Mon Sep 17 00:00:00 2001 From: Nicholas Smith Date: Fri, 11 Oct 2019 10:47:25 +1000 Subject: [PATCH] luci-proto-qmi: add PDP type option Signed-off-by: Nicholas Smith --- .../htdocs/luci-static/resources/protocol/qmi.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js index eeda91f6e..735eefabd 100644 --- a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js +++ b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js @@ -97,5 +97,11 @@ return network.registerProtocol('qmi', { o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU')); o.placeholder = dev ? (dev.getMTU() || '1500') : '1500'; o.datatype = 'max(9200)'; + + o = s.taboption('general', form.ListValue, 'pdptype', _('PDP Type')); + o.value('ipv4v6', 'IPv4/IPv6'); + o.value('ipv4', 'IPv4'); + o.value('ipv6', 'IPv6'); + o.default = 'ipv4v6'; } }); -- 2.25.1