Commit graph

18 commits

Author SHA1 Message Date
Lech Perczak
c682e530e2 luci-proto-qmi: allow v6apn and (v6)profile configuration
To support split-APN dual-stack connections over QMI, add new parameters
supported in UCI to LuCI as well. Previously, connection profile wasn't
configurable from LuCI at all, so add options to set which APN profile
to match for each protocol.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
2023-06-09 01:22:03 +02:00
Jo-Philipp Wich
5ff3ef7cbb protocols: make APN option optional again
Fixes: #5284
Fixes: 1661ac6bf8 ("luci-proto-ncm: add APN and PIN validation")
Fixes: 114dc38dc2 ("luci-proto-qmi: add APN and PIN validation")
Fixes: 6a8ad40b05 ("luci-proto-3g: add APN and PIN validation")
Fixes: ebb676ef7b ("luci-proto-modemmanager: add APN and PIN validation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-08-19 08:59:17 +02:00
Nicholas Smith
114dc38dc2 luci-proto-qmi: add APN and PIN validation
Signed-off-by: Nicholas Smith <nicholas@nbembedded.com>
[squash commits, fix whitespace]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-07-13 20:10:04 +02:00
Jo-Philipp Wich
96ee6dc8d6 protocols: rename "device" option to "_modem_device"
This is required to resolve clashes with the generic "option device"
referring to netdev names in current netifd versions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-01 15:34:11 +02:00
Jo-Philipp Wich
7d49508480 protocols: fix interface.ipv6 vs. device.ipv6 option conflict
Ref: https://forum.openwrt.org/t/pppoe-disable-ipv6/92548
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-29 22:35:46 +02:00
Florian Eckert
fa702c0387 luci-proto-qmi: add missing proto default options
This change add the following missing default options.
- defaulroute
- peerdns
- metric

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-06 11:51:15 +01:00
Jo-Philipp Wich
284918bfaf treewide: move templates and libraries not used by the core to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 17:56:58 +01:00
Nicholas Smith
c607284d30 luci-proto-qmi: remove the word 'both' from menu for improved i18n
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
2019-10-23 14:34:22 +10:00
Nicholas Smith
eb0c5c04e8 luci-proto-qmi: add PDP type option
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
2019-10-23 14:31:19 +10:00
Jo-Philipp Wich
9cae3b9e67 protocols: replace luci/getTTYDevices calls with generic file/list ones
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:29:04 +02:00
Jo-Philipp Wich
06f4feca1d protocols: drop server side cbi implementations of protocol handlers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6a2a53a829 protocols: add client side protocol handler implementations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Florian Eckert
0dec930dd4 luci-proto-qmi: add missing mtu option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-07-01 10:20:13 +02:00
Florian Eckert
f17227d3f5 luci-proto-qmi: only show password and username if auth is selected
Only show username and password if we use PAP/CHAP, PAP or CHAP
authentication.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-06-26 13:08:23 +02:00
Florian Eckert
204bc5b9ab luci-proto-qmi: add missing delay option
The proto handler qmi does support the delay option for modem
initialization. Add that missing option to the advanced tab to configure
that with LuCI.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-06-26 12:54:00 +02:00
Jo-Philipp Wich
401898a437 luci-proto-qmi: register further network error codes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:10:59 +02:00
Jo-Philipp Wich
932bae9873 protocols: fix various interface patterns
The virtual interface match patterns of various protocols were improperly
quoted, causing them to over- or undermatch.

Follow up of #1435.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 14:20:53 +01:00
David Thornley
819e8cd41b luci-proto-qmi: Added support for QMI Cellular
Derived mostly from (ppp) 3g implementation. Currently exposing the following configuration through cbi (apn/pincode/username/password/auth/ipv6).

Signed-off-by: David Thornley <david.thornley@touchstargroup.com>
2016-12-15 13:34:22 +11:00