diff options
author | John Klug <john.klug@multitech.com> | 2023-04-26 18:01:51 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-04-26 18:01:51 -0500 |
commit | b6d08dfc635dd8f92001ff18a08151792da9a3a6 (patch) | |
tree | faeeeb2198fc08d323d06ee259d27bf6831f67df /src/MTS_IO_SequansRadio.cpp | |
parent | 40e5653006558c569bc90c247790d95b68b2f646 (diff) | |
parent | 2f94db705de8e44e3aae9bbbf36fae6b8a697f76 (diff) | |
download | libmts-io-b6d08dfc635dd8f92001ff18a08151792da9a3a6.tar.gz libmts-io-b6d08dfc635dd8f92001ff18a08151792da9a3a6.tar.bz2 libmts-io-b6d08dfc635dd8f92001ff18a08151792da9a3a6.zip |
Commit merge with master on libmts-io mirror
Diffstat (limited to 'src/MTS_IO_SequansRadio.cpp')
-rw-r--r-- | src/MTS_IO_SequansRadio.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/MTS_IO_SequansRadio.cpp b/src/MTS_IO_SequansRadio.cpp index 5f85b58..3a3585c 100644 --- a/src/MTS_IO_SequansRadio.cpp +++ b/src/MTS_IO_SequansRadio.cpp @@ -282,7 +282,6 @@ ICellularRadio::CODE SequansRadio::getNetworkStatusTxPower(Json::Value& jData, J std::string sResult; std::string sPrefix; std::vector<std::string> vParts; - int iValue; CODE rc; sCmd = "AT+SQNQRUP?"; @@ -312,7 +311,7 @@ ICellularRadio::CODE SequansRadio::getNetworkStatusTxPower(Json::Value& jData, J break; // invalid, not known or not detectable } if (fTxPow < -255 || fTxPow > 99) { - printDebug("%s| Network Status command returned unexpected value of txPower: [%s][%d]", getName().c_str(), sCmd.c_str(), iValue); + printDebug("%s| Network Status command returned unexpected value of txPower: [%s][%f]", getName().c_str(), sCmd.c_str(), fTxPow); break; } jDebug[ICellularRadio::KEY_TXPWR] = vParts[0]; @@ -534,6 +533,27 @@ ICellularRadio::CODE SequansRadio::getSimLockAttemptsByType(const std::string& s return SUCCESS; } +std::vector<std::string> SequansRadio::getSupportedPdpContextAuthTypes() const { + return { + VALUE_PDP_CONTEXT_AUTH_TYPE_NONE, + VALUE_PDP_CONTEXT_AUTH_TYPE_PAP, + VALUE_PDP_CONTEXT_AUTH_TYPE_CHAP + }; +} + +ICellularRadio::CODE SequansRadio::isPdpContextAuthSupported(bool& isSupported) { + isSupported = false; + return SUCCESS; +} + +ICellularRadio::CODE SequansRadio::fillPdpContextAuthFields(Json::Value& jData) { + return NOT_APPLICABLE; +} + +ICellularRadio::CODE SequansRadio::setPdpContextAuth(const PdpContextInfo& pdpContext) { + return NOT_APPLICABLE; +} + const std::vector<std::string>& SequansRadio::getDiagCommands(bool) { // Declare as static to initialize only when used, but cache the results. const static std::vector<std::string> vCommands { |