aboutsummaryrefslogtreecommitdiff
path: root/plugins/altair/mm-modem-helpers-altair-lte.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-06-28 00:13:22 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-06-28 18:21:25 +0200
commit989ade7b8c2f8add2b670294453d2a93463b42f2 (patch)
tree36df4fed8291d57d4ea6367f7f8e631993391c4a /plugins/altair/mm-modem-helpers-altair-lte.c
parent0fb0184a2f2c11927ef095fba71e0725e5a6e5e2 (diff)
enums: replace Roman numeral suffixes in MM_MODEM_BAND_EUTRAN_*
3GPP TS 36.101 Table 5.5-1 refers the E-UTRA operating bands as 1, 2, 3, ..., etc.
Diffstat (limited to 'plugins/altair/mm-modem-helpers-altair-lte.c')
-rw-r--r--plugins/altair/mm-modem-helpers-altair-lte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/altair/mm-modem-helpers-altair-lte.c b/plugins/altair/mm-modem-helpers-altair-lte.c
index 3e52ee9c..ce652d1b 100644
--- a/plugins/altair/mm-modem-helpers-altair-lte.c
+++ b/plugins/altair/mm-modem-helpers-altair-lte.c
@@ -50,12 +50,12 @@ mm_altair_parse_bands_response (const gchar *response)
MMModemBand band;
band_value = (guint32)strtoul (split[i], NULL, 10);
- band = MM_MODEM_BAND_EUTRAN_I - 1 + band_value;
+ band = MM_MODEM_BAND_EUTRAN_1 - 1 + band_value;
/* Due to a firmware issue, the modem may incorrectly includes 0 in the
* bands response. We thus ignore any band value outside the range of
* E-UTRAN operating bands. */
- if (band >= MM_MODEM_BAND_EUTRAN_I && band <= MM_MODEM_BAND_EUTRAN_XLIV)
+ if (band >= MM_MODEM_BAND_EUTRAN_1 && band <= MM_MODEM_BAND_EUTRAN_44)
g_array_append_val (bands, band);
}