On 7/12/21 4:50 PM, Aleksander Morgado wrote:
you should ifdown & ifup the network interface
configured in netifd in order to reconnect.

No such luck: (sorry for the wrap)


hu Jul 15 13:31:11 2021 daemon.notice netifd: Interface 'wwan' is setting up now
root@AWC-EI:~# Thu Jul 15 13:31:11 2021 daemon.notice netifd: wwan (2113): modem available at /org/freedesktop/ModemManager1/Modem/0 Thu Jul 15 13:31:41 2021 daemon.notice netifd: wwan (2113): starting connection with apn 'firstnet-broadband'... Thu Jul 15 13:31:52 2021 daemon.notice netifd: wwan (2113): error: couldn't connect the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Cor'
Thu Jul 15 13:31:52 2021 daemon.notice netifd: wwan (2677): stopping network
Thu Jul 15 13:31:52 2021 daemon.notice netifd: wwan (2677): IPv4 connection teardown required in interface wwan: static Thu Jul 15 13:31:52 2021 daemon.notice netifd: wwan (2677): running disconnection (common) Thu Jul 15 13:31:52 2021 daemon.notice netifd: wwan (2677): Command failed: Permission denied Thu Jul 15 13:31:52 2021 daemon.notice netifd: wwan (2677): error: couldn't disconnect all bearers in the modem: 'GDBus.Error:org.freedesktop.Modem'


As you mentioned, there's probably some logic missing here in OpenWrt. I'm
guessing the only recovery here is to restart ModemManager.

Here's some more debug if it helps:

root@AWC-EI:~#  mmcli --modem 1 --bearer=1
  ------------------------------------
  General            |           path: /org/freedesktop/ModemManager1/Bearer/1
                     |           type: default
  ------------------------------------
  Status             |      connected: yes
                     |      suspended: no
                     |      interface: wwan0
                     |     ip timeout: 20
  ------------------------------------
  Properties         |            apn: firstnet-broadband
                     |        roaming: allowed
                     |        ip type: ipv4v6
  ------------------------------------
  IPv4 configuration |         method: static
                     |        address: 10.55.89.75
                     |         prefix: 29
                     |        gateway: 10.55.89.76
                     |            dns: 107.112.229.135
                     |            mtu: 1430


Earlier, when it was running:

Wed Jul 14 11:50:45 2021 daemon.notice netifd: wwan (6178): modem available at /org/freedesktop/ModemManager1/Modem/0

Which looks like the modem here moved from 0 to 1 (I don't know how the number
allocation happens)

After restart of ModemManager and then ifup wwan, reconnection is successful.




_______________________________________________
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to