summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2022-12-16 16:45:19 +0200
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2022-12-19 13:31:25 +0200
commitc04f0c7224311c2b9828e653ed4014e1ccf7a82f (patch)
tree52a00eff6c50d87d32a365503dd20bc8a3d3dda4 /src
parent3f374f40900e9f6618509de9a52a1a415e54de8f (diff)
downloadlibmts-io-c04f0c7224311c2b9828e653ed4014e1ccf7a82f.tar.gz
libmts-io-c04f0c7224311c2b9828e653ed4014e1ccf7a82f.tar.bz2
libmts-io-c04f0c7224311c2b9828e653ed4014e1ccf7a82f.zip
LE910: Do not exetute #RFSTS if the SIM card is PUK-locked
Executing AT#RFSTS while the SIM card is locked by PIN or PUK causes a deadlock in the legacy LE910 (LAT1, LEU1, LVW2) firmware. Avoid executing AT#RFSTS if the SIM card is locked by PUK.
Diffstat (limited to 'src')
-rw-r--r--src/MTS_IO_TelitRadio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MTS_IO_TelitRadio.cpp b/src/MTS_IO_TelitRadio.cpp
index 5db2ddf..2a07939 100644
--- a/src/MTS_IO_TelitRadio.cpp
+++ b/src/MTS_IO_TelitRadio.cpp
@@ -325,7 +325,7 @@ ICellularRadio::CODE TelitRadio::getNetworkStatus(Json::Value& jData) {
printTrace("%s| Network Status:\n%s\n", getName().c_str(), jData.toStyledString().c_str());
return SUCCESS; //return SUCCESS because getCommonNetworkStats() succeeded at top of this function
}
- if (sResult.find("SIM PIN") != std::string::npos) {
+ if (sResult.find("SIM PIN") != std::string::npos || sResult.find("SIM PUK") != std::string::npos) {
printError("%s| The SIM is locked and must first be unlocked", getName().c_str());
printTrace("%s| Network Status:\n%s\n", getName().c_str(), jData.toStyledString().c_str());
return SUCCESS; //return SUCCESS because getCommonNetworkStats() succeeded at top of this function