summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-02-18 17:36:27 +0200
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-02-18 17:42:08 +0200
commit8ecb83caf734f573666ca01a1864a44e6df820fd (patch)
tree1f235ce6514c839c3838bcd9d382c5f15f2fc315
parentf3425f9f5b32060895b7cd33d337b7ac50f9e714 (diff)
downloadlibmts-io-8ecb83caf734f573666ca01a1864a44e6df820fd.tar.gz
libmts-io-8ecb83caf734f573666ca01a1864a44e6df820fd.tar.bz2
libmts-io-8ecb83caf734f573666ca01a1864a44e6df820fd.zip
[MTX-3232] Add "supportedCellularModes" value to the radio-query --static
Defined "KEY_SUPPORTED_CELL_MODES" for a new field in radio-query --static output. This new field will return a comma-separated list of cellular modes (2g,3g,4g) that are supported by the modem.
-rw-r--r--include/mts/MTS_IO_ICellularRadio.h1
-rw-r--r--src/MTS_IO_ICellularRadio.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h
index 57d6f53..f03bd2e 100644
--- a/include/mts/MTS_IO_ICellularRadio.h
+++ b/include/mts/MTS_IO_ICellularRadio.h
@@ -126,6 +126,7 @@ namespace MTS {
static const char *KEY_CARRIER; //!< Cellular Service Provider (Home Network)
static const char *KEY_ICCID; //!< Integrated Circuit Card Identifier
static const char *KEY_MSL; //!< Master Subsidy Lock
+ static const char *KEY_SUPPORTED_CELL_MODES; //!< Comma-separated list of all supported cellular modes (2g,3g,4g)
//Network Status Data
diff --git a/src/MTS_IO_ICellularRadio.cpp b/src/MTS_IO_ICellularRadio.cpp
index 89318ef..f7a5fe8 100644
--- a/src/MTS_IO_ICellularRadio.cpp
+++ b/src/MTS_IO_ICellularRadio.cpp
@@ -49,6 +49,7 @@ const char *MTS::IO::ICellularRadio::KEY_MSID = "msid"; //!< Mobil Stat
const char *MTS::IO::ICellularRadio::KEY_MDN = "mdn"; //!< Mobile Directory Number : Actual phone number dialed to reach radio
const char *MTS::IO::ICellularRadio::KEY_ICCID = "iccid"; //!< Integrated Circuit Card Identifier
const char *MTS::IO::ICellularRadio::KEY_MSL = "msl"; //!< Master Subsidy Lock
+const char *MTS::IO::ICellularRadio::KEY_SUPPORTED_CELL_MODES = "supportedCellularModes"; //!< Comma-separated list of all supported cellular modes (2g,3g,4g)
//Dynamic Data
const char *MTS::IO::ICellularRadio::KEY_ROAMING = "roaming"; //!< Indicates whether or not using Home Network