summaryrefslogtreecommitdiff
path: root/src/MTS_IO_CdmaRadio.cpp
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2021-05-28 15:18:47 +0300
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2021-05-29 12:44:04 +0300
commit51484668683c5e10bda111c08a300af1834a59d2 (patch)
tree036272b226f64e02f8ab3084458ead1492f1c45c /src/MTS_IO_CdmaRadio.cpp
parent3589be0c1b394c33abac98c2de98a5c56d595eb3 (diff)
downloadlibmts-io-51484668683c5e10bda111c08a300af1834a59d2.tar.gz
libmts-io-51484668683c5e10bda111c08a300af1834a59d2.tar.bz2
libmts-io-51484668683c5e10bda111c08a300af1834a59d2.zip
[GP-1111] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2
Added an ability to read the PLMN ID (MCC/MNC combination) of the home carrier from the SIM. SIM PLMN ID is a part of the IMSI that contains identifier of the home network. PLMN ID in turn consists of 3-digit MCC (country code) and 2-or-3-digit MNC (network code). The length of the MNC is stored in the SIM Elementary File called "Administrative Data" (EFad for short). The purpose of the new functions is to extract PLMN ID from the SIM if this information is available.
Diffstat (limited to 'src/MTS_IO_CdmaRadio.cpp')
-rw-r--r--src/MTS_IO_CdmaRadio.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/MTS_IO_CdmaRadio.cpp b/src/MTS_IO_CdmaRadio.cpp
index f84fd34..de02055 100644
--- a/src/MTS_IO_CdmaRadio.cpp
+++ b/src/MTS_IO_CdmaRadio.cpp
@@ -1290,6 +1290,16 @@ ICellularRadio::CODE CdmaRadio::getNetworkStatus(Json::Value& jData) {
return SUCCESS;
}
+ICellularRadio::CODE CdmaRadio::getSimMccMnc(std::string&) {
+ printTrace("%s| Get MCC/MNC of the home network from the SIM: not applicable", getName().c_str());
+ return NOT_APPLICABLE;
+}
+
+ICellularRadio::CODE CdmaRadio::getSimMccMnc(std::string&, std::string&) {
+ printTrace("%s| Get MCC/MNC of the home network from the SIM: not applicable", getName().c_str());
+ return NOT_APPLICABLE;
+}
+
std::string CdmaRadio::getMeidLastSix() {
std::string sMeid;
if(getMeid(sMeid) != SUCCESS || sMeid.size() != 14) {