Skip to content

libqmi-glib: support for 'qmap pass through' expected data format

In addition to 802.3 and raw-ip, we can ask the kernel to treat the data traffic in the kernel as QMAP in 'pass through' mode, so that the packets are passed up the network stack and e.g. processed by the rmnet driver.

See https://www.spinics.net/lists/netdev/msg716582.html

$ sudo qmicli -d /dev/cdc-wdm0 --get-expected-data-format
802-3
$ cat /sys/class/net/wwp0s20f0u8u3i4/qmi/raw_ip
N
$ cat /sys/class/net/wwp0s20f0u8u3i4/qmi/pass_through
N

$ sudo qmicli -d /dev/cdc-wdm0 --set-expected-data-format=qmap-pass-through
[/dev/cdc-wdm0] expected data format set to: qmap-pass-through
$ cat /sys/class/net/wwp0s20f0u8u3i4/qmi/raw_ip
Y
$ cat /sys/class/net/wwp0s20f0u8u3i4/qmi/pass_through
Y

$ sudo qmicli -d /dev/cdc-wdm0 --set-expected-data-format=802-3
[/dev/cdc-wdm0] expected data format set to: 802-3
$ cat /sys/class/net/wwp0s20f0u8u3i4/qmi/raw_ip
N
$ cat /sys/class/net/wwp0s20f0u8u3i4/qmi/pass_through
N

$ sudo qmicli -d /dev/cdc-wdm0 --set-expected-data-format=raw-ip
[/dev/cdc-wdm0] expected data format set to: raw-ip
$ cat /sys/class/net/wwp0s20f0u8u3i4/qmi/raw_ip
Y
$ cat /sys/class/net/wwp0s20f0u8u3i4/qmi/pass_through
N

Merge request reports

Loading