problems with QMI dual stack connections from MM - works with qmicli
Bjørn Mork
bjorn at mork.no
Fri Apr 23 16:17:55 UTC 2021
Hello!
I am having some issues getting dual stack up and running with the
RG502Q-EA. Tha attached MM debug log shows the problem:
root at finn:~# grep -E -B9 -A5 "Start Net|Set IP Family" /tmp/mm.debug
<<<<<< QMUX:
<<<<<< length = 16
<<<<<< flags = 0x00
<<<<<< service = "wds"
<<<<<< client = 20
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 1
<<<<<< tlv_length = 4
<<<<<< message = "Set IP Family" (0x004D)
<<<<<< TLV:
<<<<<< type = "Preference" (0x01)
<<<<<< length = 1
<<<<<< value = 04
<<<<<< translated = ipv4
--
<<<<<< QMUX:
<<<<<< length = 19
<<<<<< flags = 0x80
<<<<<< service = "wds"
<<<<<< client = 20
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 1
<<<<<< tlv_length = 7
<<<<<< message = "Set IP Family" (0x004D)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS
--
<<<<<< QMUX:
<<<<<< length = 32
<<<<<< flags = 0x00
<<<<<< service = "wds"
<<<<<< client = 20
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 4
<<<<<< tlv_length = 20
<<<<<< message = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<< type = "IP Family Preference" (0x19)
<<<<<< length = 1
<<<<<< value = 04
<<<<<< translated = ipv4
--
<<<<<< QMUX:
<<<<<< length = 26
<<<<<< flags = 0x80
<<<<<< service = "wds"
<<<<<< client = 20
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 4
<<<<<< tlv_length = 14
<<<<<< message = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS
--
<<<<<< QMUX:
<<<<<< length = 16
<<<<<< flags = 0x00
<<<<<< service = "wds"
<<<<<< client = 21
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 1
<<<<<< tlv_length = 4
<<<<<< message = "Set IP Family" (0x004D)
<<<<<< TLV:
<<<<<< type = "Preference" (0x01)
<<<<<< length = 1
<<<<<< value = 06
<<<<<< translated = ipv6
--
<<<<<< QMUX:
<<<<<< length = 19
<<<<<< flags = 0x80
<<<<<< service = "wds"
<<<<<< client = 21
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 1
<<<<<< tlv_length = 7
<<<<<< message = "Set IP Family" (0x004D)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS
--
<<<<<< QMUX:
<<<<<< length = 32
<<<<<< flags = 0x00
<<<<<< service = "wds"
<<<<<< client = 21
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 4
<<<<<< tlv_length = 20
<<<<<< message = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<< type = "IP Family Preference" (0x19)
<<<<<< length = 1
<<<<<< value = 06
<<<<<< translated = ipv6
--
<<<<<< QMUX:
<<<<<< length = 26
<<<<<< flags = 0x80
<<<<<< service = "wds"
<<<<<< client = 21
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 4
<<<<<< tlv_length = 14
<<<<<< message = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 01:00:4F:00
<<<<<< translated = FAILURE: PolicyMismatch
The connection works fine if I set it up manually:
root at finn:~# qmicli -p -d /dev/cdc-wdm0 --device-open-sync --wda-get-data-format=ep-type=hsusb,ep-iface-number=4
[/dev/cdc-wdm0] Successfully got data format
QoS flow header: no
Link layer protocol: 'raw-ip'
Uplink data aggregation protocol: 'disabled'
Downlink data aggregation protocol: 'disabled'
NDP signature: '0'
Downlink data aggregation max datagrams: '0'
Downlink data aggregation max size: '0'
root at finn:~# qmicli -p -d /dev/cdc-wdm0 --client-no-release-cid --wds-set-ip-family=4
[/dev/cdc-wdm0] Client ID not released:
Service: 'wds'
CID: '15'
root at finn:~# qmicli -p -d /dev/cdc-wdm0 --client-no-release-cid --client-cid=15 --wds-start-network=apn=telenor.smart,ip-type=4
[/dev/cdc-wdm0] Network started
Packet data handle: '4276114592'
[/dev/cdc-wdm0] Client ID not released:
Service: 'wds'
CID: '15'
root at finn:~# qmicli -p -d /dev/cdc-wdm0 --client-no-release-cid --wds-set-ip-family=6
[/dev/cdc-wdm0] Client ID not released:
Service: 'wds'
CID: '16'
root at finn:~# qmicli -p -d /dev/cdc-wdm0 --client-no-release-cid --client-cid=16 --wds-start-network=apn=telenor.smart,ip-type=6
[/dev/cdc-wdm0] Network started
Packet data handle: '4277626288'
[/dev/cdc-wdm0] Client ID not released:
Service: 'wds'
CID: '16'
root at finn:~# qmicli -p -d /dev/cdc-wdm0 --client-no-release-cid --client-cid=15 --wds-get-current-settings
[/dev/cdc-wdm0] Current settings retrieved:
IP Family: IPv4
IPv4 address: 10.205.79.109
IPv4 subnet mask: 255.255.255.252
IPv4 gateway address: 10.205.79.110
IPv4 primary DNS: 193.213.112.4
IPv4 secondary DNS: 130.67.15.198
MTU: 1500
Domains: none
[/dev/cdc-wdm0] Client ID not released:
Service: 'wds'
CID: '15'
root at finn:~# qmicli -p -d /dev/cdc-wdm0 --client-no-release-cid --client-cid=16 --wds-get-current-settings
[/dev/cdc-wdm0] Current settings retrieved:
IP Family: IPv6
IPv6 address: 2a02:2121:286:1ec2:10f1:a8a9:751c:e2a7/64
IPv6 gateway address: 2a02:2121:286:1ec2:f113:c225:5d63:d8b7/64
IPv6 primary DNS: 2001:4600:4:fff::52
IPv6 secondary DNS: 2001:4600:4:1fff::52
MTU: 1540
Domains: none
[/dev/cdc-wdm0] Client ID not released:
Service: 'wds'
CID: '16'
MM does much more than that of course, but I can't see any obvious
explanation of the failure. Any hints?
Bjørn
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mm.debug
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20210423/e0a6ac90/attachment-0001.ksh>
More information about the ModemManager-devel
mailing list