Automatically determine APN for GSM internet connection
If the devkit has a SIM inserted, then one can connect to the internet provided by their GSM network provider with the following:
$ sudo mmcli -m 0 --simple-connect="apn=fast.t-mobile.com" $ sudo nmcli c add type gsm ifname cdc-wdm0 con-name mygsm apn fast.t-mobile.com $ nmcli r wwan on
But this requires the user to first have looked up their provider's APN. Instead, a user should be able to plug in their SIM card and it "just works" without needing to lookup the APN.
A little bit of digging revealed that there is a file on the sim card that can contain the APN names which the operator wants the device to use but can't provide the apn. instead, the device should have a database (eg. apn-conf.xml in Android Phones) that contains the apn already .
"In the case that the APN Control List is enabled and no APN is indicated in the PDP context request, indicating that a network provided APN is to be used, then the ME shall only request the PDP context activation if "network provided APN" is contained within EFACL."