1
1
openwrt/package
Chester A. Unal 8a18e84a88 uqmi: introduce devpath option
Introduce the devpath option to find the control channel device from a
hardware path for a USB or a WWAN device.

This option is useful when there are multiple modems connected to the
system. The name of the control channel device of a modem can change
depending on which modem initialises first or if it was recently plugged
in. The devpath option allows specifying the hardware path of the modem
where the control channel device will be found using that.

For the USB device hardware path, it is allowed to specify the USB port
number the modem is directly connected to.

If the device and devpath options are both set, devpath takes precedence
over device.

The USB device hardware path of a control channel device can be found by:

readlink -f /sys/class/usbmisc/cdc-wdmX/device

The WWAN device hardware path of a control channel device can be found by:

readlink -f /sys/class/wwan/wwanXqmiX/device

An example uci configuration would be:

config interface 'wwan_usb1'
	option proto 'qmi'
	option auth 'none'
	option devpath '/sys/devices/platform/1e1c0000.xhci/usb1/1-1'
	option apn 'internet'
	option pdptype 'ipv4v6'

Or:

config interface 'wwan_pcie1'
	option proto 'qmi'
	option auth 'none'
	option devpath '/sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0'
	option apn 'internet'
	option pdptype 'ipv4v6'

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
(cherry picked from commit e83da3bada)
Link: https://github.com/openwrt/openwrt/pull/22254
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-30 13:02:58 +02:00
..
base-files OpenWrt v25.12.2: revert to branch defaults 2026-03-26 14:35:28 +01:00
boot mediatek: add support for Zyxel WX5600-T0 2026-03-30 12:54:40 +02:00
devel gdb: add CPPFLAGS 2026-02-17 22:30:19 +01:00
firmware linux-firmware: update to 20260221 2026-03-30 12:48:46 +02:00
kernel kernel: add kmods for vsockets over virtio 2026-03-29 17:29:13 +02:00
libs libubox: set abi version to previous bump for stable release 2026-03-15 19:35:03 +01:00
network uqmi: introduce devpath option 2026-03-30 13:02:58 +02:00
system apk: add help text for 'apk add --force-reinstall' 2026-03-27 20:50:50 +01:00
utils jsonfilter: update to Git HEAD (2026-03-16) 2026-03-16 00:52:52 +01:00
Makefile build: use STAGING_DIR for special APK package versions 2026-03-07 10:12:44 +01:00