<html><head></head><body dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="ApplePlainTextBody"><div class="ApplePlainTextBody">Hey,<br><br>Testing with EM7565 on OpenWrt master, working great!  Thank you! <br><br><br>root@OpenWrt:~# mmcli -b 1<br>  --------------------------------<br>  General            |  dbus path: /org/freedesktop/ModemManager1/Bearer/1<br>                     |       type: default<br>  --------------------------------<br>  Status             |  connected: yes<br>                     |  suspended: no<br>                     |  interface: wwan0<br>                     | ip timeout: 20<br>  --------------------------------<br>  Properties         |        apn: telstra.internet<br>                     |    roaming: allowed<br>                     |    ip type: ipv4<br>  --------------------------------<br>  IPv4 configuration |     method: static<br>                     |    address: 10.94.21.22<br>                     |     prefix: 30<br>                     |    gateway: 10.94.21.21<br>                     |        dns: 10.5.136.242, 10.4.58.204<br>                     |        mtu: 1500<br>  --------------------------------<br>  Statistics         |   bytes rx: 432<br>                     |   bytes tx: 9418583<br><br><br>root@OpenWrt:~# mmcli -b 1<br>  --------------------------------<br>  General            |  dbus path: /org/freedesktop/ModemManager1/Bearer/1<br>                     |       type: default<br>  --------------------------------<br>  Status             |  connected: yes<br>                     |  suspended: no<br>                     |  interface: wwan0<br>                     | ip timeout: 20<br>  --------------------------------<br>  Properties         |        apn: telstra.internet<br>                     |    roaming: allowed<br>                     |    ip type: ipv4v6<br>  --------------------------------<br>  IPv4 configuration |     method: static<br>                     |    address: 10.92.9.95<br>                     |     prefix: 26<br>                     |    gateway: 10.92.9.96<br>                     |        dns: 10.5.133.45, 10.4.27.70<br>                     |        mtu: 1500<br>  --------------------------------<br>  IPv6 configuration |     method: static<br>                     |    address: 2001:8004:1160:d4e:5039:16ca:76d8:6d1a<br>                     |     prefix: 64<br>                     |    gateway: 2001:8004:1160:d4e:bcc9:5e51:4a7d:98c0<br>                     |        dns: 2001:8004:0:6120:7:e1c0:0:10, 2001:8004:0:61a0:7:e1c0:0:10<br>                     |        mtu: 1500<br>  --------------------------------<br>  Statistics         |   duration: 60<br>                     |   bytes rx: 204735<br>                     |   bytes tx: 9321043<br><br><br>root@OpenWrt:~# mmcli -b 1<br>  --------------------------------<br>  General            |  dbus path: /org/freedesktop/ModemManager1/Bearer/1<br>                     |       type: default<br>  --------------------------------<br>  Status             |  connected: yes<br>                     |  suspended: no<br>                     |  interface: wwan0<br>                     | ip timeout: 20<br>  --------------------------------<br>  Properties         |        apn: telstra.internet<br>                     |    roaming: allowed<br>                     |    ip type: ipv6<br>  --------------------------------<br>  IPv6 configuration |     method: static<br>                     |    address: 2001:8004:1180:192b:89fe:e8d3:94d4:5353<br>                     |     prefix: 64<br>                     |    gateway: 2001:8004:1180:192b:a498:a3aa:d4ef:238b<br>                     |        dns: 2001:8004:0:61a0:7:e1c0:0:10, 2001:8004:0:6120:7:e1c0:0:10<br>                     |        mtu: 1500<br>  --------------------------------<br>  Statistics         |   bytes rx: 336<br>                     |   bytes tx: 9451856<br><br><br>root@OpenWrt:~# mmcli -m 0<br>  ------------------------------------<br>  General  |                dbus path: /org/freedesktop/ModemManager1/Modem/0<br>           |                device id: 6f67b84ec933782e1f2cd4f48d850f7e513f428b<br>  ------------------------------------<br>  Hardware |             manufacturer: Sierra Wireless, Incorporated<br>           |                    model: Sierra Wireless EM7565 Qualcomm® Snapdragon™ X16 LTE-A<br>           |        firmware revision: SWI9X50C_01.09.04.00<br>           |           carrier config: default<br>           |             h/w revision: EM7565<br>           |                supported: gsm-umts, lte<br>           |                  current: gsm-umts, lte<br>           |             equipment id: 3592600801nnnnn<br>  ------------------------------------<br>  System   |                   device: /sys/devices/platform/soc/8af8800.usb3/8a00000.dwc3/xhci-hcd.0.auto/usb1/1-1<br>           |                  drivers: cdc_mbim<br>           |                   plugin: Sierra<br>           |             primary port: cdc-wdm0<br>           |                    ports: cdc-wdm0 (mbim), wwan0 (net)<br>  ------------------------------------<br>  Status   |           unlock retries: sim-pin2 (3)<br>           |                    state: connected<br>           |              power state: on<br>           |              access tech: lte<br>           |           signal quality: 22% (cached)<br>  ------------------------------------<br>  Modes    |                supported: allowed: 3g; preferred: none<br>           |                           allowed: 4g; preferred: none<br>           |                           allowed: 3g, 4g; preferred: 3g<br>           |                           allowed: 3g, 4g; preferred: 4g<br>           |                  current: allowed: 2g, 3g, 4g; preferred: 4g<br>  ------------------------------------<br>  Bands    |                supported: utran-1, utran-4, utran-6, utran-5, utran-8, utran-9, <br>           |                           utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, eutran-7, <br>           |                           eutran-8, eutran-9, eutran-12, eutran-13, eutran-18, eutran-19, <br>           |                           eutran-20, eutran-26, eutran-28, eutran-29, eutran-30, eutran-32, <br>           |                           eutran-41, eutran-46, eutran-66, utran-19<br>           |                  current: utran-1, utran-4, utran-6, utran-5, utran-8, utran-9, <br>           |                           utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, eutran-7, <br>           |                           eutran-8, eutran-9, eutran-12, eutran-13, eutran-18, eutran-19, <br>           |                           eutran-20, eutran-26, eutran-28, eutran-29, eutran-30, eutran-32, <br>           |                           eutran-41, eutran-46, eutran-66, utran-19<br>  ------------------------------------<br>  IP       |                supported: ipv4, ipv6, ipv4v6<br>  ------------------------------------<br>  3GPP     |                     imei: 3592600801nnnnn<br>           |            enabled locks: fixed-dialing<br>           |              operator id: 50501<br>           |            operator name: Telstra<br>           |             registration: home<br>  ------------------------------------<br>  3GPP EPS | initial bearer dbus path: /org/freedesktop/ModemManager1/Bearer/2<br>           |       initial bearer apn: telstra.internet<br>           |   initial bearer ip type: ipv4<br>  ------------------------------------<br>  SIM      |                dbus path: /org/freedesktop/ModemManager1/SIM/0<br>  ------------------------------------<br>  Bearer   |                dbus path: /org/freedesktop/ModemManager1/Bearer/1<br><br><br><br><br><br>Nick<br><br><br><blockquote type="cite">On 8 Nov 2019, at 3:34 am, Aleksander Morgado <aleksander@aleksander.es> wrote:<br><br>Hey<br><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Before the openwrt packages were integrated in the official packages<br>repo, we received a merge request adding some IPv6 support to the<br>modemmanager protocol handler.<br><br>Please look at this patch in case you want to get that integrated:<br>https://gitlab.freedesktop.org/aleksm/mobile-broadband-openwrt/commit/9234ce19c00cf2067d7ea48844569ae2fd135033<br></blockquote><br>Now I haven't tested this at all, so I might be missing<br>something.... But the patch has a<br><br>       if [ "$iptype" = "ipv6" -o "$iptype" = "ipv4v6" ]; then<br>          .. lotsofstuff<br>       else<br>          .. otherstuff<br>       fi<br><br>This looks wrong, and like it might potentionally break IPv4 in the<br>"ipv4v6" case.  Or is that still handled somehow?<br><br>There are also som minor nits like requiring "bearer.ipv6-config.method"<br>for IPv6 just for the<br><br> echo "connection setup required in interface ${beareriface}: ${bearermethod}"<br><br>when in fact only "static" is supported for IPv6. Which I guess is fine<br>by itself. "dhcp" doesn't make much sense. But I believe "ppp" at least<br>should spit out an "unsupported" warning or similar.  OpenWrt users have<br>been known to try dual stack over PPP in the past :-)<br><br></blockquote><br>I should have added the patch author in CC in order to discuss the<br>changes with him if needed, doing that now.<br><br></blockquote><br>Here's my attempt to add IPv4v6/IPv6 support to the OpenWRT protocol handler:<br>https://github.com/aleksander0m/openwrt-packages/commit/b5805c3e1d2965662d2fe16aa80140a242339abd<br><br>Tests with that branch would be very appreciated.<br><br>-- <br>Aleksander<br>https://aleksander.es<br></blockquote><br></div></body></html>