Initial Bearer APN is incorrect

Amol Lad Amol.Lad at 4rf.com
Mon Dec 9 09:19:07 UTC 2019


Hi,

I'm using Sierra EM7565 in latest openwrt with MM 1.12.0. When I start a connection using "-simple-connect" command then the "initial bearer" used is the APN which was last made active. This breaks in some private APNs which do not recognise that APN.  Please refer to below command sequence. I would have thought when we delete the bearer then the corresponding CGDCONT should have also got deleted but that's not happening and I think this is the reason why "initial bearer" from the new connection uses the "old deleted bearer APN"

# mmcli -m 0 -e
successfully enabled the modem

# mmcli -m 0 --simple-connect="apn=airtelgprs.com"
successfully connected the modem

# mmcli -m 0 --command=AT+CGDCONT?
response: '+CGDCONT: 1,"IP","airtelgprs.com","0.0.0.0",0,0,0,0'

# mmcli -m 0
...
Bearer   |                dbus path: /org/freedesktop/ModemManager1/Bearer/1

# mmcli -m 0 --simple-disconnect=/org/freedesktop/ModemManager1/Bearer/1
successfully disconnected all bearers in the modem

# mmcli -m 0 --delete-bearer=/org/freedesktop/ModemManager1/Bearer/1
successfully deleted bearer from modem

# mmcli -m 0 --command=AT+CGDCONT?
response: '+CGDCONT: 1,"IP","airtelgprs.com","0.0.0.0",0,0,0,0

>From above, CGDCONT is still present and not deleted from mode. I ran mm in debug mode but no output when "-delete-bearer" command is executed. Now start a new connection:

# mmcli -m 0 --simple-connect="apn=jionet"
successfully connected the modem

# mmcli -m 0
....
  3GPP EPS |     ue mode of operation: csps-2
           | initial bearer dbus path: /org/freedesktop/ModemManager1/Bearer/3
           |       initial bearer apn: airtelgprs.com
           |   initial bearer ip type: ipv4

As you can see initial bearer apn is "airtelgprs.com" which we deleted previously

Any advise will be of great help.

Thanks
Amol

Full output (and mmcli -b output reports that new apn is "jionet")

root at OpenWrt:/# mmcli -m 0
  ------------------------------------
  General  |                dbus path: /org/freedesktop/ModemManager1/Modem/0
           |                device id: b1778145998fe05be11f9841377b5222e395cd27
  ------------------------------------
  Hardware |             manufacturer: Sierra Wireless, Incorporated
           |                    model: Sierra Wireless EM7565 Qualcomm(r) Snapdragon(tm) X16 LTE-A
           |        firmware revision: SWI9X50C_01.11.00.00
           |           carrier config: default
           |             h/w revision: EM7565
           |                supported: gsm-umts, lte
           |                  current: gsm-umts, lte
           |             equipment id: 359260080211680
  ------------------------------------
  System   |                   device: /sys/devices/platform/soc/soc:internal-regs/f10f8000.usb3/usb5/5-1
           |                  drivers: qcserial, cdc_mbim
           |                   plugin: Sierra
           |             primary port: cdc-wdm0
           |                    ports: ttyUSB0 (qcdm), ttyUSB1 (gps), ttyUSB2 (at),
           |                           cdc-wdm0 (mbim), wwan0 (net)
  ------------------------------------
  Numbers  |                      own: 918660286965
  ------------------------------------
  Status   |           unlock retries: sim-pin2 (3)
           |                    state: connected
           |              power state: on
           |              access tech: lte
           |           signal quality: 19% (recent)
  ------------------------------------
  Modes    |                supported: allowed: 3g; preferred: none
           |                           allowed: 4g; preferred: none
           |                           allowed: 3g, 4g; preferred: 3g
           |                           allowed: 3g, 4g; preferred: 4g
           |                  current: allowed: 4g; preferred: none
  ------------------------------------
  Bands    |                supported: utran-1, utran-4, utran-6, utran-5, utran-8, utran-9,
           |                           utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, eutran-7,
           |                           eutran-8, eutran-9, eutran-12, eutran-13, eutran-18, eutran-19,
           |                           eutran-20, eutran-26, eutran-28, eutran-29, eutran-30, eutran-32,
           |                           eutran-41, eutran-46, eutran-66, utran-19
           |                  current: eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, eutran-7,
           |                           eutran-8, eutran-9, eutran-12, eutran-13, eutran-18, eutran-19,
           |                           eutran-20, eutran-26, eutran-28, eutran-29, eutran-30, eutran-32,
           |                           eutran-41, eutran-46, eutran-66
  ------------------------------------
  IP       |                supported: ipv4, ipv6, ipv4v6
  ------------------------------------
  3GPP     |                     imei: 359260080211680
           |            enabled locks: fixed-dialing
           |              operator id: 405861
           |            operator name: Jio 4G
           |             registration: home
  ------------------------------------
  3GPP EPS |     ue mode of operation: csps-2
           | initial bearer dbus path: /org/freedesktop/ModemManager1/Bearer/3
           |       initial bearer apn: airtelgprs.com
           |   initial bearer ip type: ipv4
  ------------------------------------
  SIM      |                dbus path: /org/freedesktop/ModemManager1/SIM/0
  ------------------------------------
  Bearer   |                dbus path: /org/freedesktop/ModemManager1/Bearer/2
________________________________
The information in this email communication (inclusive of attachments) is confidential to 4RF Limited and the intended recipient(s). If you are not the intended recipient(s), please note that any use, disclosure, distribution or copying of this information or any part thereof is strictly prohibited and that the author accepts no liability for the consequences of any action taken on the basis of the information provided. If you have received this email in error, please notify the sender immediately by return email and then delete all instances of this email from your system. 4RF Limited will not accept responsibility for any consequences associated with the use of this email (including, but not limited to, damages sustained as a result of any viruses and/or any action or lack of action taken in reliance on it).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20191209/d0d79191/attachment-0001.html>


More information about the ModemManager-devel mailing list