Carrier config support
This MR adds support for loading the currently used carrier config information, using QMI PDC, for modules that support it. In addition to this, MM also enables automatic carrier config switching for the DW5821e module.
The automatic switching is based on 2 ideas:
- Depending on the SIM card detected, we may want to use one configuration or another one. E.g. I test with Vodafone and Telefonica SIM cards myself, and depending on which one I use with the module, the module will have a different carrier configuration.
- The mapping between MCCMNC and carrier description is a module/plugin setting, as not all manufacturers will name the config descriptions in the same way.
The mapping for the DW5821e is based on the list of carrier configurations supported by the manufacturer for the module, and is formatted in a keyfile. This list is provided by the manufacturer itself:
$ less /usr/share/ModemManager/mm-dell-dw5821e-carrier-mapping.conf
[dell dw5821e]
# AT&T
302220=ATT
302221=ATT
...
# FirstNet
312670=A2
313100=A2
...
Edited by Aleksander Morgado