summaryrefslogtreecommitdiff
path: root/src/MTS_IO_CellularRadio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MTS_IO_CellularRadio.cpp')
-rw-r--r--src/MTS_IO_CellularRadio.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp
index 0ec7c05..c5b503d 100644
--- a/src/MTS_IO_CellularRadio.cpp
+++ b/src/MTS_IO_CellularRadio.cpp
@@ -1615,10 +1615,10 @@ const char *CellularRadio::RadioBandMap::getLTEBand(const int32_t channel)
{
for (unsigned int ii = 0; ii < NUM_LTE_BANDS; ii++)
{
- if (EULTRAband[ii].low <= channel && EULTRAband[ii].high >= channel)
- {
- return EULTRAband[ii].name;
- }
+ if (EULTRAband[ii].low <= channel && EULTRAband[ii].high >= channel)
+ {
+ return EULTRAband[ii].name;
+ }
}
return VALUE_UNKNOWN.c_str();
}
@@ -1627,10 +1627,10 @@ const char *CellularRadio::RadioBandMap::getCDMABand(const int channel)
{
for (unsigned int ii = 0; ii < NUM_WCDMA_BANDS; ii++)
{
- if (WCDMAband[ii].low <= channel && WCDMAband[ii].high >= channel)
- {
- return WCDMAband[ii].name;
- }
+ if (WCDMAband[ii].low <= channel && WCDMAband[ii].high >= channel)
+ {
+ return WCDMAband[ii].name;
+ }
}
return VALUE_UNKNOWN.c_str();
}
@@ -1639,10 +1639,10 @@ const char *CellularRadio::RadioBandMap::getGSMBand(const int channel)
{
for (unsigned int ii = 0; ii < NUM_GSM_BANDS; ii++)
{
- if (GSMband[ii].low <= channel && GSMband[ii].high >= channel)
- {
- return GSMband[ii].name;
- }
+ if (GSMband[ii].low <= channel && GSMband[ii].high >= channel)
+ {
+ return GSMband[ii].name;
+ }
}
return VALUE_UNKNOWN.c_str();
}
@@ -1661,7 +1661,7 @@ const char *CellularRadio::RadioBandMap::getRadioBandName()
}
else if (m_sRadioType == CellularRadio::VALUE_TYPE_GSM)
{
- band = getGSMBand(m_iChannel);
+ band = getGSMBand(m_iChannel);
}
return band;
@@ -1669,8 +1669,8 @@ const char *CellularRadio::RadioBandMap::getRadioBandName()
const char *CellularRadio::RadioBandMap::getRadioBandName(const std::string &channel, const std::string &radioType)
{
- const char *band = CellularRadio::VALUE_UNKNOWN.c_str();
- int32_t chan = strtol(channel.c_str(), NULL, 10);
+ const char *band = CellularRadio::VALUE_UNKNOWN.c_str();
+ int32_t chan = strtol(channel.c_str(), NULL, 10);
if (radioType == CellularRadio::VALUE_TYPE_LTE)
{
band = getLTEBand(chan);
@@ -1681,8 +1681,8 @@ const char *CellularRadio::RadioBandMap::getRadioBandName(const std::string &cha
}
else if (radioType == CellularRadio::VALUE_TYPE_GSM)
{
- band = getGSMBand(chan);
+ band = getGSMBand(chan);
}
- return band;
+ return band;
}