From 5d81a9e8d2afc8d2f1dbf9ab29d9248dcb54378a Mon Sep 17 00:00:00 2001
From: Serhii Kostiuk <serhii.o.kostiuk@globallogic.com>
Date: Tue, 25 Feb 2020 14:53:39 +0200
Subject: [MTX-3239] Add "cellularMode" value to the radio-query --dynamic

Ported "cellularModeStr" function to MTS::IO::CellularRadio class. This function
converts integer bitmap to comma-separated list of cellular modes.
---
 include/mts/MTS_IO_CellularRadio.h  | 2 ++
 include/mts/MTS_IO_ICellularRadio.h | 2 ++
 2 files changed, 4 insertions(+)

(limited to 'include')

diff --git a/include/mts/MTS_IO_CellularRadio.h b/include/mts/MTS_IO_CellularRadio.h
index 4b53382..56506af 100644
--- a/include/mts/MTS_IO_CellularRadio.h
+++ b/include/mts/MTS_IO_CellularRadio.h
@@ -78,6 +78,8 @@ namespace MTS {
                 CODE getRegistration(REGISTRATION& eRegistration) override;
                 CODE convertRegistrationToString(REGISTRATION eRegistration, std::string& sRegistration) override;
 
+                CODE convertCellModesToString(CELLULAR_MODES eCellModes, std::string& sCellModes) override;
+
                 CODE unlockSimCard(const Json::Value& jArgs) override;
 
                 CODE getMipProfile(Json::Value& jMipProfile) override;
diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h
index f03bd2e..b9ac36f 100644
--- a/include/mts/MTS_IO_ICellularRadio.h
+++ b/include/mts/MTS_IO_ICellularRadio.h
@@ -267,6 +267,8 @@ namespace MTS {
                 virtual CODE getRegistration(REGISTRATION& eRegistration) = 0;
                 virtual CODE convertRegistrationToString(REGISTRATION eRegistration, std::string& sRegistration) = 0;
 
+                virtual CODE convertCellModesToString(CELLULAR_MODES eCellModes, std::string& sCellModes) = 0;
+
                 /**
                  * @brief unlockSimCard - unlock the SIM card using PIN code provided
                  *
-- 
cgit v1.2.3


From 85fc8d9a281b57cc356bf38ca72bd7880e4001d3 Mon Sep 17 00:00:00 2001
From: Serhii Kostiuk <serhii.o.kostiuk@globallogic.com>
Date: Tue, 25 Feb 2020 15:27:18 +0200
Subject: [MTX-3239] Add "cellularMode" value to the radio-query --dynamic

Added "cellularMode" value to the list dynamic (network stats) params
---
 include/mts/MTS_IO_ICellularRadio.h | 1 +
 1 file changed, 1 insertion(+)

(limited to 'include')

diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h
index b9ac36f..58d5076 100644
--- a/include/mts/MTS_IO_ICellularRadio.h
+++ b/include/mts/MTS_IO_ICellularRadio.h
@@ -133,6 +133,7 @@ namespace MTS {
                 static const char *KEY_ROAMING;       //!< Indicates whether or not using Home Network
                 static const char *KEY_DATETIME;      //!< Date and Time from tower
                 static const char *KEY_SERVICE;       //!< Service Connection Type [GPRS, EGPRS, WCDMA, HSDPA, 1xRTT, EVDO]
+                static const char *KEY_CELL_MODE;     //!< Specifies the cellular mode that is currently used by the modem [2g, 3g, 4g]
                 static const char *KEY_NETWORK;       //!< Cellular Service Provider
                 static const char *KEY_NETWORK_REG;   //!< Network Registration
                 static const char *KEY_CID;           //!< Cellular ID (Tower) in HEX
-- 
cgit v1.2.3