diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2021-05-29 12:22:30 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2021-05-29 12:51:23 +0300 |
commit | 10633362bed1a888168f17fa1edf639990c15c50 (patch) | |
tree | 660d74a3ddeceab7f872cc8e85b1f59be663c0f9 /include | |
parent | e5e131de3faf1530cc977edc643e886a640d3bde (diff) | |
download | libmts-io-10633362bed1a888168f17fa1edf639990c15c50.tar.gz libmts-io-10633362bed1a888168f17fa1edf639990c15c50.tar.bz2 libmts-io-10633362bed1a888168f17fa1edf639990c15c50.zip |
[GP-1111] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2
Fixed the `CellularRadio::getCarrier` implementation to use MCC/MNC
combination from the SIM intead of the serving cell.
Historically the implementation used MCC/MNC data from the cell that
is currently serving the device and provides the registration. This
MCC/MNC code is different from those of the home network in case of
a roaming - the network/carrier that provided the SIM is different
from the one who serves the device at the moment.
The more correct way to determine home carrier for GSM/UMTS/LTE devices
is to read first 5 or 6 digits of the SIM IMSI than encode the carrier.
This commit updates the implementation to use SIM IMSI as a source of
truth for the home network/carrier code.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions