summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-qmi
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-10-23 11:12:05 +0200
committerGitHub <noreply@github.com>2019-10-23 11:12:05 +0200
commita9b680c4e23b4c15a7fa31f8e06a10f04fbf83be (patch)
treefb5e5ce80faeb77fba5a34fb721186425184acf4 /protocols/luci-proto-qmi
parentafd3b99e58e3e8805d674dfb1b00bfcf2ad40327 (diff)
parentc607284d301917496b9568aff4f47b6b8261cbb2 (diff)
Merge pull request #3178 from nickberry17/update-proto-qmi
luci-proto-qmi: add PDP type option
Diffstat (limited to 'protocols/luci-proto-qmi')
-rw-r--r--protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js8
1 files changed, 7 insertions, 1 deletions
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 eeda91f6e6..d496808b0a 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
@@ -68,7 +68,7 @@ return network.registerProtocol('qmi', {
s.taboption('general', form.Value, 'pincode', _('PIN'));
o = s.taboption('general', form.ListValue, 'auth', _('Authentication Type'));
- o.value('both', 'PAP/CHAP (both)');
+ o.value('both', 'PAP/CHAP');
o.value('pap', 'PAP');
o.value('chap', 'CHAP');
o.value('none', 'NONE');
@@ -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';
}
});