<div dir="ltr">I've a follow-up patch to add additional LTE bands, so hopefully we can migrate away from Roman numerals in those enums, which I found it a bit easier to make typo mistakes :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 22, 2017 at 6:08 PM, Ben Chan <span dir="ltr"><<a href="mailto:benchan@chromium.org" target="_blank">benchan@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">3GPP TS 36.101 Table 5.5-1 refers the E-UTRA operating bands as 1, 2, 3,<br>
..., etc.<br>
---<br>
include/ModemManager-enums.h | 144 +++++++-------<br>
plugins/altair/mm-modem-<wbr>helpers-altair-lte.c | 4 +-<br>
.../altair/tests/test-modem-<wbr>helpers-altair-lte.c | 8 +-<br>
plugins/telit/mm-modem-<wbr>helpers-telit.c | 6 +-<br>
plugins/telit/tests/test-mm-<wbr>modem-helpers-telit.c | 24 +--<br>
plugins/ublox/mm-modem-<wbr>helpers-ublox.c | 20 +-<br>
plugins/ublox/tests/test-<wbr>modem-helpers-ublox.c | 62 +++---<br>
src/mm-modem-helpers-qmi.c | 211 ++++++++++-----------<br>
8 files changed, 239 insertions(+), 240 deletions(-)<br>
<br>
diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h<br>
index c956573d..2ceb0e71 100644<br>
--- a/include/ModemManager-enums.h<br>
+++ b/include/ModemManager-enums.h<br>
@@ -258,42 +258,42 @@ typedef enum { /*< underscore_name=mm_modem_mode >*/<br>
* @MM_MODEM_BAND_U17IX: WCDMA 3GPP UMTS 1700 MHz (Class IX).<br>
* @MM_MODEM_BAND_U1900: WCDMA 3GPP UMTS 1900 MHz (Class II).<br>
* @MM_MODEM_BAND_U2600: WCDMA 3GPP UMTS 2600 MHz (Class VII, internal).<br>
- * @MM_MODEM_BAND_EUTRAN_I: E-UTRAN band I.<br>
- * @MM_MODEM_BAND_EUTRAN_II: E-UTRAN band II.<br>
- * @MM_MODEM_BAND_EUTRAN_III: E-UTRAN band III.<br>
- * @MM_MODEM_BAND_EUTRAN_IV: E-UTRAN band IV.<br>
- * @MM_MODEM_BAND_EUTRAN_V: E-UTRAN band V.<br>
- * @MM_MODEM_BAND_EUTRAN_VI: E-UTRAN band VI.<br>
- * @MM_MODEM_BAND_EUTRAN_VII: E-UTRAN band VII.<br>
- * @MM_MODEM_BAND_EUTRAN_VIII: E-UTRAN band VIII.<br>
- * @MM_MODEM_BAND_EUTRAN_IX: E-UTRAN band IX.<br>
- * @MM_MODEM_BAND_EUTRAN_X: E-UTRAN band X.<br>
- * @MM_MODEM_BAND_EUTRAN_XI: E-UTRAN band XI.<br>
- * @MM_MODEM_BAND_EUTRAN_XII: E-UTRAN band XII.<br>
- * @MM_MODEM_BAND_EUTRAN_XIII: E-UTRAN band XIII.<br>
- * @MM_MODEM_BAND_EUTRAN_XIV: E-UTRAN band XIV.<br>
- * @MM_MODEM_BAND_EUTRAN_XVII: E-UTRAN band XVII.<br>
- * @MM_MODEM_BAND_EUTRAN_XVIII: E-UTRAN band XVIII.<br>
- * @MM_MODEM_BAND_EUTRAN_XIX: E-UTRAN band XIX.<br>
- * @MM_MODEM_BAND_EUTRAN_XX: E-UTRAN band XX.<br>
- * @MM_MODEM_BAND_EUTRAN_XXI: E-UTRAN band XXI.<br>
- * @MM_MODEM_BAND_EUTRAN_XXII: E-UTRAN band XXII.<br>
- * @MM_MODEM_BAND_EUTRAN_XXIII: E-UTRAN band XXIII.<br>
- * @MM_MODEM_BAND_EUTRAN_XXIV: E-UTRAN band XXIV.<br>
- * @MM_MODEM_BAND_EUTRAN_XXV: E-UTRAN band XXV.<br>
- * @MM_MODEM_BAND_EUTRAN_XXVI: E-UTRAN band XXVI.<br>
- * @MM_MODEM_BAND_EUTRAN_XXXIII: E-UTRAN band XXXIII.<br>
- * @MM_MODEM_BAND_EUTRAN_XXXIV: E-UTRAN band XXXIV.<br>
- * @MM_MODEM_BAND_EUTRAN_XXXV: E-UTRAN band XXXV.<br>
- * @MM_MODEM_BAND_EUTRAN_XXXVI: E-UTRAN band XXXVI.<br>
- * @MM_MODEM_BAND_EUTRAN_XXXVII: E-UTRAN band XXXVII.<br>
- * @MM_MODEM_BAND_EUTRAN_XXXVIII: E-UTRAN band XXXVIII.<br>
- * @MM_MODEM_BAND_EUTRAN_XXXIX: E-UTRAN band XXXIX.<br>
- * @MM_MODEM_BAND_EUTRAN_XL: E-UTRAN band XL.<br>
- * @MM_MODEM_BAND_EUTRAN_XLI: E-UTRAN band XLI.<br>
- * @MM_MODEM_BAND_EUTRAN_XLII: E-UTRAN band XLII.<br>
- * @MM_MODEM_BAND_EUTRAN_XLIII: E-UTRAN band XLIII.<br>
- * @MM_MODEM_BAND_EUTRAN_XLIV: E-UTRAN band XLIV.<br>
+ * @MM_MODEM_BAND_EUTRAN_1: E-UTRAN band 1.<br>
+ * @MM_MODEM_BAND_EUTRAN_2: E-UTRAN band 2.<br>
+ * @MM_MODEM_BAND_EUTRAN_3: E-UTRAN band 3.<br>
+ * @MM_MODEM_BAND_EUTRAN_4: E-UTRAN band 4.<br>
+ * @MM_MODEM_BAND_EUTRAN_5: E-UTRAN band 5.<br>
+ * @MM_MODEM_BAND_EUTRAN_6: E-UTRAN band 6.<br>
+ * @MM_MODEM_BAND_EUTRAN_7: E-UTRAN band 7.<br>
+ * @MM_MODEM_BAND_EUTRAN_8: E-UTRAN band 8.<br>
+ * @MM_MODEM_BAND_EUTRAN_9: E-UTRAN band 9.<br>
+ * @MM_MODEM_BAND_EUTRAN_10: E-UTRAN band 10.<br>
+ * @MM_MODEM_BAND_EUTRAN_11: E-UTRAN band 11.<br>
+ * @MM_MODEM_BAND_EUTRAN_12: E-UTRAN band 12.<br>
+ * @MM_MODEM_BAND_EUTRAN_13: E-UTRAN band 13.<br>
+ * @MM_MODEM_BAND_EUTRAN_14: E-UTRAN band 14.<br>
+ * @MM_MODEM_BAND_EUTRAN_17: E-UTRAN band 17.<br>
+ * @MM_MODEM_BAND_EUTRAN_18: E-UTRAN band 18.<br>
+ * @MM_MODEM_BAND_EUTRAN_19: E-UTRAN band 19.<br>
+ * @MM_MODEM_BAND_EUTRAN_20: E-UTRAN band 20.<br>
+ * @MM_MODEM_BAND_EUTRAN_21: E-UTRAN band 21.<br>
+ * @MM_MODEM_BAND_EUTRAN_22: E-UTRAN band 22.<br>
+ * @MM_MODEM_BAND_EUTRAN_23: E-UTRAN band 23.<br>
+ * @MM_MODEM_BAND_EUTRAN_24: E-UTRAN band 24.<br>
+ * @MM_MODEM_BAND_EUTRAN_25: E-UTRAN band 25.<br>
+ * @MM_MODEM_BAND_EUTRAN_26: E-UTRAN band 26.<br>
+ * @MM_MODEM_BAND_EUTRAN_33: E-UTRAN band 33.<br>
+ * @MM_MODEM_BAND_EUTRAN_34: E-UTRAN band 34.<br>
+ * @MM_MODEM_BAND_EUTRAN_35: E-UTRAN band 35.<br>
+ * @MM_MODEM_BAND_EUTRAN_36: E-UTRAN band 36.<br>
+ * @MM_MODEM_BAND_EUTRAN_37: E-UTRAN band 37.<br>
+ * @MM_MODEM_BAND_EUTRAN_38: E-UTRAN band 38.<br>
+ * @MM_MODEM_BAND_EUTRAN_39: E-UTRAN band 39.<br>
+ * @MM_MODEM_BAND_EUTRAN_40: E-UTRAN band 40.<br>
+ * @MM_MODEM_BAND_EUTRAN_41: E-UTRAN band 41.<br>
+ * @MM_MODEM_BAND_EUTRAN_42: E-UTRAN band 42.<br>
+ * @MM_MODEM_BAND_EUTRAN_43: E-UTRAN band 43.<br>
+ * @MM_MODEM_BAND_EUTRAN_44: E-UTRAN band 44.<br>
* @MM_MODEM_BAND_CDMA_BC0_<wbr>CELLULAR_800: CDMA Band Class 0 (US Cellular 850MHz).<br>
* @MM_MODEM_BAND_CDMA_BC1_PCS_<wbr>1900: CDMA Band Class 1 (US PCS 1900MHz).<br>
* @MM_MODEM_BAND_CDMA_BC2_TACS: CDMA Band Class 2 (UK TACS 900MHz).<br>
@@ -335,42 +335,42 @@ typedef enum { /*< underscore_name=mm_modem_band >*/<br>
MM_MODEM_BAND_U1900 = 12,<br>
MM_MODEM_BAND_U2600 = 13,<br>
/* LTE bands */<br>
- MM_MODEM_BAND_EUTRAN_I = 31,<br>
- MM_MODEM_BAND_EUTRAN_II = 32,<br>
- MM_MODEM_BAND_EUTRAN_III = 33,<br>
- MM_MODEM_BAND_EUTRAN_IV = 34,<br>
- MM_MODEM_BAND_EUTRAN_V = 35,<br>
- MM_MODEM_BAND_EUTRAN_VI = 36,<br>
- MM_MODEM_BAND_EUTRAN_VII = 37,<br>
- MM_MODEM_BAND_EUTRAN_VIII = 38,<br>
- MM_MODEM_BAND_EUTRAN_IX = 39,<br>
- MM_MODEM_BAND_EUTRAN_X = 40,<br>
- MM_MODEM_BAND_EUTRAN_XI = 41,<br>
- MM_MODEM_BAND_EUTRAN_XII = 42,<br>
- MM_MODEM_BAND_EUTRAN_XIII = 43,<br>
- MM_MODEM_BAND_EUTRAN_XIV = 44,<br>
- MM_MODEM_BAND_EUTRAN_XVII = 47,<br>
- MM_MODEM_BAND_EUTRAN_XVIII = 48,<br>
- MM_MODEM_BAND_EUTRAN_XIX = 49,<br>
- MM_MODEM_BAND_EUTRAN_XX = 50,<br>
- MM_MODEM_BAND_EUTRAN_XXI = 51,<br>
- MM_MODEM_BAND_EUTRAN_XXII = 52,<br>
- MM_MODEM_BAND_EUTRAN_XXIII = 53,<br>
- MM_MODEM_BAND_EUTRAN_XXIV = 54,<br>
- MM_MODEM_BAND_EUTRAN_XXV = 55,<br>
- MM_MODEM_BAND_EUTRAN_XXVI = 56,<br>
- MM_MODEM_BAND_EUTRAN_XXXIII = 63,<br>
- MM_MODEM_BAND_EUTRAN_XXXIV = 64,<br>
- MM_MODEM_BAND_EUTRAN_XXXV = 65,<br>
- MM_MODEM_BAND_EUTRAN_XXXVI = 66,<br>
- MM_MODEM_BAND_EUTRAN_XXXVII = 67,<br>
- MM_MODEM_BAND_EUTRAN_XXXVIII = 68,<br>
- MM_MODEM_BAND_EUTRAN_XXXIX = 69,<br>
- MM_MODEM_BAND_EUTRAN_XL = 70,<br>
- MM_MODEM_BAND_EUTRAN_XLI = 71,<br>
- MM_MODEM_BAND_EUTRAN_XLII = 72,<br>
- MM_MODEM_BAND_EUTRAN_XLIII = 73,<br>
- MM_MODEM_BAND_EUTRAN_XLIV = 74,<br>
+ MM_MODEM_BAND_EUTRAN_1 = 31,<br>
+ MM_MODEM_BAND_EUTRAN_2 = 32,<br>
+ MM_MODEM_BAND_EUTRAN_3 = 33,<br>
+ MM_MODEM_BAND_EUTRAN_4 = 34,<br>
+ MM_MODEM_BAND_EUTRAN_5 = 35,<br>
+ MM_MODEM_BAND_EUTRAN_6 = 36,<br>
+ MM_MODEM_BAND_EUTRAN_7 = 37,<br>
+ MM_MODEM_BAND_EUTRAN_8 = 38,<br>
+ MM_MODEM_BAND_EUTRAN_9 = 39,<br>
+ MM_MODEM_BAND_EUTRAN_10 = 40,<br>
+ MM_MODEM_BAND_EUTRAN_11 = 41,<br>
+ MM_MODEM_BAND_EUTRAN_12 = 42,<br>
+ MM_MODEM_BAND_EUTRAN_13 = 43,<br>
+ MM_MODEM_BAND_EUTRAN_14 = 44,<br>
+ MM_MODEM_BAND_EUTRAN_17 = 47,<br>
+ MM_MODEM_BAND_EUTRAN_18 = 48,<br>
+ MM_MODEM_BAND_EUTRAN_19 = 49,<br>
+ MM_MODEM_BAND_EUTRAN_20 = 50,<br>
+ MM_MODEM_BAND_EUTRAN_21 = 51,<br>
+ MM_MODEM_BAND_EUTRAN_22 = 52,<br>
+ MM_MODEM_BAND_EUTRAN_23 = 53,<br>
+ MM_MODEM_BAND_EUTRAN_24 = 54,<br>
+ MM_MODEM_BAND_EUTRAN_25 = 55,<br>
+ MM_MODEM_BAND_EUTRAN_26 = 56,<br>
+ MM_MODEM_BAND_EUTRAN_33 = 63,<br>
+ MM_MODEM_BAND_EUTRAN_34 = 64,<br>
+ MM_MODEM_BAND_EUTRAN_35 = 65,<br>
+ MM_MODEM_BAND_EUTRAN_36 = 66,<br>
+ MM_MODEM_BAND_EUTRAN_37 = 67,<br>
+ MM_MODEM_BAND_EUTRAN_38 = 68,<br>
+ MM_MODEM_BAND_EUTRAN_39 = 69,<br>
+ MM_MODEM_BAND_EUTRAN_40 = 70,<br>
+ MM_MODEM_BAND_EUTRAN_41 = 71,<br>
+ MM_MODEM_BAND_EUTRAN_42 = 72,<br>
+ MM_MODEM_BAND_EUTRAN_43 = 73,<br>
+ MM_MODEM_BAND_EUTRAN_44 = 74,<br>
/* CDMA Band Classes (see 3GPP2 C.S0057-C) */<br>
MM_MODEM_BAND_CDMA_BC0_<wbr>CELLULAR_800 = 128,<br>
MM_MODEM_BAND_CDMA_BC1_PCS_<wbr>1900 = 129,<br>
diff --git a/plugins/altair/mm-modem-<wbr>helpers-altair-lte.c b/plugins/altair/mm-modem-<wbr>helpers-altair-lte.c<br>
index 3e52ee9c..ce652d1b 100644<br>
--- a/plugins/altair/mm-modem-<wbr>helpers-altair-lte.c<br>
+++ b/plugins/altair/mm-modem-<wbr>helpers-altair-lte.c<br>
@@ -50,12 +50,12 @@ mm_altair_parse_bands_response (const gchar *response)<br>
MMModemBand band;<br>
<br>
band_value = (guint32)strtoul (split[i], NULL, 10);<br>
- band = MM_MODEM_BAND_EUTRAN_I - 1 + band_value;<br>
+ band = MM_MODEM_BAND_EUTRAN_1 - 1 + band_value;<br>
<br>
/* Due to a firmware issue, the modem may incorrectly includes 0 in the<br>
* bands response. We thus ignore any band value outside the range of<br>
* E-UTRAN operating bands. */<br>
- if (band >= MM_MODEM_BAND_EUTRAN_I && band <= MM_MODEM_BAND_EUTRAN_XLIV)<br>
+ if (band >= MM_MODEM_BAND_EUTRAN_1 && band <= MM_MODEM_BAND_EUTRAN_44)<br>
g_array_append_val (bands, band);<br>
}<br>
<br>
diff --git a/plugins/altair/tests/test-<wbr>modem-helpers-altair-lte.c b/plugins/altair/tests/test-<wbr>modem-helpers-altair-lte.c<br>
index 4d038ce1..a4901cd6 100644<br>
--- a/plugins/altair/tests/test-<wbr>modem-helpers-altair-lte.c<br>
+++ b/plugins/altair/tests/test-<wbr>modem-helpers-altair-lte.c<br>
@@ -43,10 +43,10 @@ test_parse_bands (void)<br>
bands = mm_altair_parse_bands_response ("0, 0, 1, 4,13,44,45");<br>
g_assert (bands != NULL);<br>
g_assert_cmpuint (bands->len, ==, 4);<br>
- g_assert_cmpuint (g_array_index (bands, MMModemBand, 0), ==, MM_MODEM_BAND_EUTRAN_I);<br>
- g_assert_cmpuint (g_array_index (bands, MMModemBand, 1), ==, MM_MODEM_BAND_EUTRAN_IV);<br>
- g_assert_cmpuint (g_array_index (bands, MMModemBand, 2), ==, MM_MODEM_BAND_EUTRAN_XIII);<br>
- g_assert_cmpuint (g_array_index (bands, MMModemBand, 3), ==, MM_MODEM_BAND_EUTRAN_XLIV);<br>
+ g_assert_cmpuint (g_array_index (bands, MMModemBand, 0), ==, MM_MODEM_BAND_EUTRAN_1);<br>
+ g_assert_cmpuint (g_array_index (bands, MMModemBand, 1), ==, MM_MODEM_BAND_EUTRAN_4);<br>
+ g_assert_cmpuint (g_array_index (bands, MMModemBand, 2), ==, MM_MODEM_BAND_EUTRAN_13);<br>
+ g_assert_cmpuint (g_array_index (bands, MMModemBand, 3), ==, MM_MODEM_BAND_EUTRAN_44);<br>
g_array_free (bands, TRUE);<br>
}<br>
<br>
diff --git a/plugins/telit/mm-modem-<wbr>helpers-telit.c b/plugins/telit/mm-modem-<wbr>helpers-telit.c<br>
index 5a7ecb79..3b227044 100644<br>
--- a/plugins/telit/mm-modem-<wbr>helpers-telit.c<br>
+++ b/plugins/telit/mm-modem-<wbr>helpers-telit.c<br>
@@ -57,8 +57,8 @@ mm_telit_get_band_flag (GArray *bands_array,<br>
}<br>
<br>
if (flag4g != NULL &&<br>
- band >= MM_MODEM_BAND_EUTRAN_I && band <= MM_MODEM_BAND_EUTRAN_XLIV) {<br>
- mask4g += 1 << (band - MM_MODEM_BAND_EUTRAN_I);<br>
+ band >= MM_MODEM_BAND_EUTRAN_1 && band <= MM_MODEM_BAND_EUTRAN_44) {<br>
+ mask4g += 1 << (band - MM_MODEM_BAND_EUTRAN_1);<br>
found4g = TRUE;<br>
}<br>
}<br>
@@ -480,7 +480,7 @@ mm_telit_get_4g_mm_bands(<wbr>GMatchInfo *match_info,<br>
<br>
for (i = 0; value > 0; i++) {<br>
if (value % 2 != 0) {<br>
- band = MM_MODEM_BAND_EUTRAN_I + i;<br>
+ band = MM_MODEM_BAND_EUTRAN_1 + i;<br>
g_array_append_val (*bands, band);<br>
}<br>
value = value >> 1;<br>
diff --git a/plugins/telit/tests/test-mm-<wbr>modem-helpers-telit.c b/plugins/telit/tests/test-mm-<wbr>modem-helpers-telit.c<br>
index e42467ea..1a43846d 100644<br>
--- a/plugins/telit/tests/test-mm-<wbr>modem-helpers-telit.c<br>
+++ b/plugins/telit/tests/test-mm-<wbr>modem-helpers-telit.c<br>
@@ -189,14 +189,14 @@ static BNDResponseTest supported_band_mapping_tests [] = {<br>
MM_MODEM_BAND_U2100,<br>
MM_MODEM_BAND_U850,<br>
MM_MODEM_BAND_U900,<br>
- MM_MODEM_BAND_EUTRAN_I} },<br>
+ MM_MODEM_BAND_EUTRAN_1} },<br>
{ "#BND: (0),(0),(1-3)", TRUE, TRUE, TRUE, 5, { MM_MODEM_BAND_EGSM,<br>
MM_MODEM_BAND_DCS,<br>
MM_MODEM_BAND_U2100,<br>
- MM_MODEM_BAND_EUTRAN_I,<br>
- MM_MODEM_BAND_EUTRAN_II} },<br>
- { "#BND: (0),(0),(1-3)", FALSE, FALSE, TRUE, 2, { MM_MODEM_BAND_EUTRAN_I,<br>
- MM_MODEM_BAND_EUTRAN_II} },<br>
+ MM_MODEM_BAND_EUTRAN_1,<br>
+ MM_MODEM_BAND_EUTRAN_2} },<br>
+ { "#BND: (0),(0),(1-3)", FALSE, FALSE, TRUE, 2, { MM_MODEM_BAND_EUTRAN_1,<br>
+ MM_MODEM_BAND_EUTRAN_2} },<br>
{ NULL, FALSE, FALSE, FALSE, 0, {}},<br>
};<br>
<br>
@@ -261,17 +261,17 @@ static BNDResponseTest current_band_mapping_tests [] = {<br>
{ "#BND: 3,0,1", TRUE, TRUE, TRUE, 4, { MM_MODEM_BAND_PCS,<br>
MM_MODEM_BAND_G850,<br>
MM_MODEM_BAND_U2100,<br>
- MM_MODEM_BAND_EUTRAN_I<br>
+ MM_MODEM_BAND_EUTRAN_1<br>
}<br>
},<br>
{ "#BND: 0,0,3", TRUE, FALSE, TRUE, 4, { MM_MODEM_BAND_EGSM,<br>
MM_MODEM_BAND_DCS,<br>
- MM_MODEM_BAND_EUTRAN_I,<br>
- MM_MODEM_BAND_EUTRAN_II<br>
+ MM_MODEM_BAND_EUTRAN_1,<br>
+ MM_MODEM_BAND_EUTRAN_2<br>
}<br>
},<br>
- { "#BND: 0,0,3", FALSE, FALSE, TRUE, 2, { MM_MODEM_BAND_EUTRAN_I,<br>
- MM_MODEM_BAND_EUTRAN_II<br>
+ { "#BND: 0,0,3", FALSE, FALSE, TRUE, 2, { MM_MODEM_BAND_EUTRAN_1,<br>
+ MM_MODEM_BAND_EUTRAN_2<br>
}<br>
},<br>
{ NULL, FALSE, FALSE, FALSE, 0, {}},<br>
@@ -471,8 +471,8 @@ static void<br>
test_telit_get_4g_bnd_flag (void)<br>
{<br>
GArray *bands_array;<br>
- MMModemBand eutran_i = MM_MODEM_BAND_EUTRAN_I;<br>
- MMModemBand eutran_ii = MM_MODEM_BAND_EUTRAN_II;<br>
+ MMModemBand eutran_i = MM_MODEM_BAND_EUTRAN_1;<br>
+ MMModemBand eutran_ii = MM_MODEM_BAND_EUTRAN_2;<br>
MMModemBand egsm = MM_MODEM_BAND_EGSM;<br>
gint flag = -1;<br>
<br>
diff --git a/plugins/ublox/mm-modem-<wbr>helpers-ublox.c b/plugins/ublox/mm-modem-<wbr>helpers-ublox.c<br>
index 96ac4702..bee1a8f0 100644<br>
--- a/plugins/ublox/mm-modem-<wbr>helpers-ublox.c<br>
+++ b/plugins/ublox/mm-modem-<wbr>helpers-ublox.c<br>
@@ -552,55 +552,55 @@ typedef struct {<br>
static const BandConfiguration band_configuration[] = {<br>
{<br>
.ubandsel_value = 700,<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_XIII, MM_MODEM_BAND_EUTRAN_XVII }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_13, MM_MODEM_BAND_EUTRAN_17 }<br>
},<br>
{<br>
.ubandsel_value = 800,<br>
.bands_3g = { MM_MODEM_BAND_U800 },<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_XX }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_20 }<br>
},<br>
{<br>
.ubandsel_value = 850,<br>
.bands_2g = { MM_MODEM_BAND_G850 },<br>
.bands_3g = { MM_MODEM_BAND_U850 },<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_V }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_5 }<br>
},<br>
{<br>
.ubandsel_value = 900,<br>
.bands_2g = { MM_MODEM_BAND_EGSM },<br>
.bands_3g = { MM_MODEM_BAND_U900 },<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_VIII }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_8 }<br>
},<br>
{<br>
.ubandsel_value = 1500,<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_XI }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_11 }<br>
},<br>
{<br>
.ubandsel_value = 1700,<br>
.bands_3g = { MM_MODEM_BAND_U17IV },<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_IV }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_4 }<br>
},<br>
{<br>
.ubandsel_value = 1800,<br>
.bands_2g = { MM_MODEM_BAND_DCS },<br>
.bands_3g = { MM_MODEM_BAND_U1800 },<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_III }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_3 }<br>
},<br>
{<br>
.ubandsel_value = 1900,<br>
.bands_2g = { MM_MODEM_BAND_PCS },<br>
.bands_3g = { MM_MODEM_BAND_U1900 },<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_II }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_2 }<br>
},<br>
{<br>
.ubandsel_value = 2100,<br>
.bands_3g = { MM_MODEM_BAND_U2100 },<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_I }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_1 }<br>
},<br>
{<br>
.ubandsel_value = 2600,<br>
.bands_3g = { MM_MODEM_BAND_U2600 },<br>
- .bands_4g = { MM_MODEM_BAND_EUTRAN_VII }<br>
+ .bands_4g = { MM_MODEM_BAND_EUTRAN_7 }<br>
},<br>
};<br>
<br>
diff --git a/plugins/ublox/tests/test-<wbr>modem-helpers-ublox.c b/plugins/ublox/tests/test-<wbr>modem-helpers-ublox.c<br>
index 703e915b..286a58af 100644<br>
--- a/plugins/ublox/tests/test-<wbr>modem-helpers-ublox.c<br>
+++ b/plugins/ublox/tests/test-<wbr>modem-helpers-ublox.c<br>
@@ -520,16 +520,16 @@ test_supported_bands_all (void)<br>
{<br>
/* All 2G, 3G and 4G bands */<br>
const MMModemBand expected_bands[] = {<br>
- /* 700 */ MM_MODEM_BAND_EUTRAN_XIII, MM_MODEM_BAND_EUTRAN_XVII,<br>
- /* 800 */ MM_MODEM_BAND_U800, MM_MODEM_BAND_EUTRAN_XX,<br>
- /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_V,<br>
- /* 900 */ MM_MODEM_BAND_EGSM, MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_VIII,<br>
- /* 1500 */ MM_MODEM_BAND_EUTRAN_XI,<br>
- /* 1700 */ MM_MODEM_BAND_U17IV, MM_MODEM_BAND_EUTRAN_IV,<br>
- /* 1800 */ MM_MODEM_BAND_DCS, MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_III,<br>
- /* 1900 */ MM_MODEM_BAND_PCS, MM_MODEM_BAND_U1900, MM_MODEM_BAND_EUTRAN_II,<br>
- /* 2100 */ MM_MODEM_BAND_U2100, MM_MODEM_BAND_EUTRAN_I,<br>
- /* 2600 */ MM_MODEM_BAND_U2600, MM_MODEM_BAND_EUTRAN_VII,<br>
+ /* 700 */ MM_MODEM_BAND_EUTRAN_13, MM_MODEM_BAND_EUTRAN_17,<br>
+ /* 800 */ MM_MODEM_BAND_U800, MM_MODEM_BAND_EUTRAN_20,<br>
+ /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_5,<br>
+ /* 900 */ MM_MODEM_BAND_EGSM, MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_8,<br>
+ /* 1500 */ MM_MODEM_BAND_EUTRAN_11,<br>
+ /* 1700 */ MM_MODEM_BAND_U17IV, MM_MODEM_BAND_EUTRAN_4,<br>
+ /* 1800 */ MM_MODEM_BAND_DCS, MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_3,<br>
+ /* 1900 */ MM_MODEM_BAND_PCS, MM_MODEM_BAND_U1900, MM_MODEM_BAND_EUTRAN_2,<br>
+ /* 2100 */ MM_MODEM_BAND_U2100, MM_MODEM_BAND_EUTRAN_1,<br>
+ /* 2600 */ MM_MODEM_BAND_U2600, MM_MODEM_BAND_EUTRAN_7,<br>
};<br>
<br>
common_validate_supported_<wbr>bands (NULL, expected_bands, G_N_ELEMENTS (expected_bands));<br>
@@ -540,16 +540,16 @@ test_supported_bands_toby_l201 (void)<br>
{<br>
/* Only 3G and 4G bands */<br>
const MMModemBand expected_bands[] = {<br>
- /* 700 */ MM_MODEM_BAND_EUTRAN_XIII, MM_MODEM_BAND_EUTRAN_XVII,<br>
- /* 800 */ MM_MODEM_BAND_U800, MM_MODEM_BAND_EUTRAN_XX,<br>
- /* 850 */ MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_V,<br>
- /* 900 */ MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_VIII,<br>
- /* 1500 */ MM_MODEM_BAND_EUTRAN_XI,<br>
- /* 1700 */ MM_MODEM_BAND_U17IV, MM_MODEM_BAND_EUTRAN_IV,<br>
- /* 1800 */ MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_III,<br>
- /* 1900 */ MM_MODEM_BAND_U1900, MM_MODEM_BAND_EUTRAN_II,<br>
- /* 2100 */ MM_MODEM_BAND_U2100, MM_MODEM_BAND_EUTRAN_I,<br>
- /* 2600 */ MM_MODEM_BAND_U2600, MM_MODEM_BAND_EUTRAN_VII,<br>
+ /* 700 */ MM_MODEM_BAND_EUTRAN_13, MM_MODEM_BAND_EUTRAN_17,<br>
+ /* 800 */ MM_MODEM_BAND_U800, MM_MODEM_BAND_EUTRAN_20,<br>
+ /* 850 */ MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_5,<br>
+ /* 900 */ MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_8,<br>
+ /* 1500 */ MM_MODEM_BAND_EUTRAN_11,<br>
+ /* 1700 */ MM_MODEM_BAND_U17IV, MM_MODEM_BAND_EUTRAN_4,<br>
+ /* 1800 */ MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_3,<br>
+ /* 1900 */ MM_MODEM_BAND_U1900, MM_MODEM_BAND_EUTRAN_2,<br>
+ /* 2100 */ MM_MODEM_BAND_U2100, MM_MODEM_BAND_EUTRAN_1,<br>
+ /* 2600 */ MM_MODEM_BAND_U2600, MM_MODEM_BAND_EUTRAN_7,<br>
};<br>
<br>
common_validate_supported_<wbr>bands ("TOBY-L201", expected_bands, G_N_ELEMENTS (expected_bands));<br>
@@ -627,10 +627,10 @@ static void<br>
test_ubandsel_response_four (void)<br>
{<br>
const MMModemBand expected_bands[] = {<br>
- /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_V,<br>
- /* 900 */ MM_MODEM_BAND_EGSM, MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_VIII,<br>
- /* 1800 */ MM_MODEM_BAND_DCS, MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_III,<br>
- /* 1900 */ MM_MODEM_BAND_PCS, MM_MODEM_BAND_U1900, MM_MODEM_BAND_EUTRAN_II,<br>
+ /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_5,<br>
+ /* 900 */ MM_MODEM_BAND_EGSM, MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_8,<br>
+ /* 1800 */ MM_MODEM_BAND_DCS, MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_3,<br>
+ /* 1900 */ MM_MODEM_BAND_PCS, MM_MODEM_BAND_U1900, MM_MODEM_BAND_EUTRAN_2,<br>
};<br>
<br>
common_validate_ubandsel_<wbr>response ("+UBANDSEL: 850,900,1800,1900\r\n", expected_bands, G_N_ELEMENTS (expected_bands));<br>
@@ -640,9 +640,9 @@ static void<br>
test_ubandsel_response_three (void)<br>
{<br>
const MMModemBand expected_bands[] = {<br>
- /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_V,<br>
- /* 900 */ MM_MODEM_BAND_EGSM, MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_VIII,<br>
- /* 1800 */ MM_MODEM_BAND_DCS, MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_III,<br>
+ /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_5,<br>
+ /* 900 */ MM_MODEM_BAND_EGSM, MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_8,<br>
+ /* 1800 */ MM_MODEM_BAND_DCS, MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_3,<br>
};<br>
<br>
common_validate_ubandsel_<wbr>response ("+UBANDSEL: 850,900,1800\r\n", expected_bands, G_N_ELEMENTS (expected_bands));<br>
@@ -652,8 +652,8 @@ static void<br>
test_ubandsel_response_two (void)<br>
{<br>
const MMModemBand expected_bands[] = {<br>
- /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_V,<br>
- /* 900 */ MM_MODEM_BAND_EGSM, MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_VIII,<br>
+ /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_5,<br>
+ /* 900 */ MM_MODEM_BAND_EGSM, MM_MODEM_BAND_U900, MM_MODEM_BAND_EUTRAN_8,<br>
};<br>
<br>
common_validate_ubandsel_<wbr>response ("+UBANDSEL: 850,900\r\n", expected_bands, G_N_ELEMENTS (expected_bands));<br>
@@ -663,7 +663,7 @@ static void<br>
test_ubandsel_response_one (void)<br>
{<br>
const MMModemBand expected_bands[] = {<br>
- /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_V,<br>
+ /* 850 */ MM_MODEM_BAND_G850, MM_MODEM_BAND_U850, MM_MODEM_BAND_EUTRAN_5,<br>
};<br>
<br>
common_validate_ubandsel_<wbr>response ("+UBANDSEL: 850\r\n", expected_bands, G_N_ELEMENTS (expected_bands));<br>
@@ -718,7 +718,7 @@ static void<br>
test_ubandsel_request_1800 (void)<br>
{<br>
const MMModemBand bands[] = {<br>
- MM_MODEM_BAND_DCS, MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_III<br>
+ MM_MODEM_BAND_DCS, MM_MODEM_BAND_U1800, MM_MODEM_BAND_EUTRAN_3<br>
};<br>
<br>
common_validate_ubandsel_<wbr>request (bands, G_N_ELEMENTS (bands), "+UBANDSEL=1800");<br>
diff --git a/src/mm-modem-helpers-qmi.c b/src/mm-modem-helpers-qmi.c<br>
index 778ce9e7..de5b730b 100644<br>
--- a/src/mm-modem-helpers-qmi.c<br>
+++ b/src/mm-modem-helpers-qmi.c<br>
@@ -258,45 +258,45 @@ typedef struct {<br>
} DmsLteBandsMap;<br>
<br>
static const DmsLteBandsMap dms_lte_bands_map [] = {<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_1, MM_MODEM_BAND_EUTRAN_I },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_2, MM_MODEM_BAND_EUTRAN_II },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_3, MM_MODEM_BAND_EUTRAN_III },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_4, MM_MODEM_BAND_EUTRAN_IV },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_5, MM_MODEM_BAND_EUTRAN_V },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_6, MM_MODEM_BAND_EUTRAN_VI },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_7, MM_MODEM_BAND_EUTRAN_VII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_8, MM_MODEM_BAND_EUTRAN_VIII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_9, MM_MODEM_BAND_EUTRAN_IX },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_10, MM_MODEM_BAND_EUTRAN_X },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_11, MM_MODEM_BAND_EUTRAN_XI },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_12, MM_MODEM_BAND_EUTRAN_XII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_13, MM_MODEM_BAND_EUTRAN_XIII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_14, MM_MODEM_BAND_EUTRAN_XIV },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_17, MM_MODEM_BAND_EUTRAN_XVII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_18, MM_MODEM_BAND_EUTRAN_XVIII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_19, MM_MODEM_BAND_EUTRAN_XIX },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_20, MM_MODEM_BAND_EUTRAN_XX },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_21, MM_MODEM_BAND_EUTRAN_XXI },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_24, MM_MODEM_BAND_EUTRAN_XXIV },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_25, MM_MODEM_BAND_EUTRAN_XXV },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_33, MM_MODEM_BAND_EUTRAN_XXXIII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_34, MM_MODEM_BAND_EUTRAN_XXXIV },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_35, MM_MODEM_BAND_EUTRAN_XXXV },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_36, MM_MODEM_BAND_EUTRAN_XXXVI },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_37, MM_MODEM_BAND_EUTRAN_XXXVII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_38, MM_MODEM_BAND_EUTRAN_XXXVIII },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_39, MM_MODEM_BAND_EUTRAN_XXXIX },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_40, MM_MODEM_BAND_EUTRAN_XL },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_41, MM_MODEM_BAND_EUTRAN_XLI },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_42, MM_MODEM_BAND_EUTRAN_XLI },<br>
- { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_43, MM_MODEM_BAND_EUTRAN_XLIII }<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_1, MM_MODEM_BAND_EUTRAN_1 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_2, MM_MODEM_BAND_EUTRAN_2 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_3, MM_MODEM_BAND_EUTRAN_3 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_4, MM_MODEM_BAND_EUTRAN_4 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_5, MM_MODEM_BAND_EUTRAN_5 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_6, MM_MODEM_BAND_EUTRAN_6 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_7, MM_MODEM_BAND_EUTRAN_7 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_8, MM_MODEM_BAND_EUTRAN_8 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_9, MM_MODEM_BAND_EUTRAN_9 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_10, MM_MODEM_BAND_EUTRAN_10 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_11, MM_MODEM_BAND_EUTRAN_11 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_12, MM_MODEM_BAND_EUTRAN_12 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_13, MM_MODEM_BAND_EUTRAN_13 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_14, MM_MODEM_BAND_EUTRAN_14 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_17, MM_MODEM_BAND_EUTRAN_17 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_18, MM_MODEM_BAND_EUTRAN_18 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_19, MM_MODEM_BAND_EUTRAN_19 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_20, MM_MODEM_BAND_EUTRAN_20 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_21, MM_MODEM_BAND_EUTRAN_21 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_24, MM_MODEM_BAND_EUTRAN_24 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_25, MM_MODEM_BAND_EUTRAN_25 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_33, MM_MODEM_BAND_EUTRAN_33 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_34, MM_MODEM_BAND_EUTRAN_34 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_35, MM_MODEM_BAND_EUTRAN_35 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_36, MM_MODEM_BAND_EUTRAN_36 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_37, MM_MODEM_BAND_EUTRAN_37 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_38, MM_MODEM_BAND_EUTRAN_38 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_39, MM_MODEM_BAND_EUTRAN_39 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_40, MM_MODEM_BAND_EUTRAN_40 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_41, MM_MODEM_BAND_EUTRAN_41 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_42, MM_MODEM_BAND_EUTRAN_42 },<br>
+ { QMI_DMS_LTE_BAND_CAPABILITY_<wbr>EUTRAN_43, MM_MODEM_BAND_EUTRAN_43 }<br>
<br>
/* NOTE. The following bands were unmatched:<br>
*<br>
- * - MM_MODEM_BAND_EUTRAN_XXII<br>
- * - MM_MODEM_BAND_EUTRAN_XXIII<br>
- * - MM_MODEM_BAND_EUTRAN_XXVI<br>
- * - MM_MODEM_BAND_EUTRAN_XLIV<br>
+ * - MM_MODEM_BAND_EUTRAN_22<br>
+ * - MM_MODEM_BAND_EUTRAN_23<br>
+ * - MM_MODEM_BAND_EUTRAN_26<br>
+ * - MM_MODEM_BAND_EUTRAN_44<br>
*/<br>
};<br>
<br>
@@ -435,45 +435,45 @@ typedef struct {<br>
} NasLteBandsMap;<br>
<br>
static const NasLteBandsMap nas_lte_bands_map [] = {<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_1, MM_MODEM_BAND_EUTRAN_I },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_2, MM_MODEM_BAND_EUTRAN_II },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_3, MM_MODEM_BAND_EUTRAN_III },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_4, MM_MODEM_BAND_EUTRAN_IV },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_5, MM_MODEM_BAND_EUTRAN_V },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_6, MM_MODEM_BAND_EUTRAN_VI },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_7, MM_MODEM_BAND_EUTRAN_VII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_8, MM_MODEM_BAND_EUTRAN_VIII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_9, MM_MODEM_BAND_EUTRAN_IX },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_10, MM_MODEM_BAND_EUTRAN_X },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_11, MM_MODEM_BAND_EUTRAN_XI },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_12, MM_MODEM_BAND_EUTRAN_XII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_13, MM_MODEM_BAND_EUTRAN_XIII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_14, MM_MODEM_BAND_EUTRAN_XIV },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_17, MM_MODEM_BAND_EUTRAN_XVII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_18, MM_MODEM_BAND_EUTRAN_XVIII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_19, MM_MODEM_BAND_EUTRAN_XIX },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_20, MM_MODEM_BAND_EUTRAN_XX },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_21, MM_MODEM_BAND_EUTRAN_XXI },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_24, MM_MODEM_BAND_EUTRAN_XXIV },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_25, MM_MODEM_BAND_EUTRAN_XXV },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_33, MM_MODEM_BAND_EUTRAN_XXXIII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_34, MM_MODEM_BAND_EUTRAN_XXXIV },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_35, MM_MODEM_BAND_EUTRAN_XXXV },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_36, MM_MODEM_BAND_EUTRAN_XXXVI },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_37, MM_MODEM_BAND_EUTRAN_XXXVII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_38, MM_MODEM_BAND_EUTRAN_XXXVIII },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_39, MM_MODEM_BAND_EUTRAN_XXXIX },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_40, MM_MODEM_BAND_EUTRAN_XL },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_41, MM_MODEM_BAND_EUTRAN_XLI },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_42, MM_MODEM_BAND_EUTRAN_XLI },<br>
- { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_43, MM_MODEM_BAND_EUTRAN_XLIII }<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_1, MM_MODEM_BAND_EUTRAN_1 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_2, MM_MODEM_BAND_EUTRAN_2 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_3, MM_MODEM_BAND_EUTRAN_3 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_4, MM_MODEM_BAND_EUTRAN_4 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_5, MM_MODEM_BAND_EUTRAN_5 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_6, MM_MODEM_BAND_EUTRAN_6 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_7, MM_MODEM_BAND_EUTRAN_7 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_8, MM_MODEM_BAND_EUTRAN_8 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_9, MM_MODEM_BAND_EUTRAN_9 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_10, MM_MODEM_BAND_EUTRAN_10 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_11, MM_MODEM_BAND_EUTRAN_11 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_12, MM_MODEM_BAND_EUTRAN_12 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_13, MM_MODEM_BAND_EUTRAN_13 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_14, MM_MODEM_BAND_EUTRAN_14 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_17, MM_MODEM_BAND_EUTRAN_17 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_18, MM_MODEM_BAND_EUTRAN_18 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_19, MM_MODEM_BAND_EUTRAN_19 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_20, MM_MODEM_BAND_EUTRAN_20 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_21, MM_MODEM_BAND_EUTRAN_21 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_24, MM_MODEM_BAND_EUTRAN_24 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_25, MM_MODEM_BAND_EUTRAN_25 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_33, MM_MODEM_BAND_EUTRAN_33 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_34, MM_MODEM_BAND_EUTRAN_34 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_35, MM_MODEM_BAND_EUTRAN_35 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_36, MM_MODEM_BAND_EUTRAN_36 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_37, MM_MODEM_BAND_EUTRAN_37 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_38, MM_MODEM_BAND_EUTRAN_38 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_39, MM_MODEM_BAND_EUTRAN_39 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_40, MM_MODEM_BAND_EUTRAN_40 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_41, MM_MODEM_BAND_EUTRAN_41 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_42, MM_MODEM_BAND_EUTRAN_42 },<br>
+ { QMI_NAS_LTE_BAND_PREFERENCE_<wbr>EUTRAN_43, MM_MODEM_BAND_EUTRAN_43 }<br>
<br>
/* NOTE. The following bands were unmatched:<br>
*<br>
- * - MM_MODEM_BAND_EUTRAN_XXII<br>
- * - MM_MODEM_BAND_EUTRAN_XXIII<br>
- * - MM_MODEM_BAND_EUTRAN_XXVI<br>
- * - MM_MODEM_BAND_EUTRAN_XLIV<br>
+ * - MM_MODEM_BAND_EUTRAN_22<br>
+ * - MM_MODEM_BAND_EUTRAN_23<br>
+ * - MM_MODEM_BAND_EUTRAN_26<br>
+ * - MM_MODEM_BAND_EUTRAN_44<br>
*/<br>
};<br>
<br>
@@ -521,8 +521,7 @@ mm_modem_bands_to_qmi_band_<wbr>preference (GArray *mm_bands,<br>
<br>
band = g_array_index (mm_bands, MMModemBand, i);<br>
<br>
- if (band <= MM_MODEM_BAND_EUTRAN_XLIV &&<br>
- band >= MM_MODEM_BAND_EUTRAN_I) {<br>
+ if (band >= MM_MODEM_BAND_EUTRAN_1 && band <= MM_MODEM_BAND_EUTRAN_44) {<br>
/* Add LTE band preference */<br>
guint j;<br>
<br>
@@ -603,38 +602,38 @@ static const ActiveBandsMap active_bands_map [] = {<br>
{ QMI_NAS_ACTIVE_BAND_WCDMA_850_<wbr>JAPAN, MM_MODEM_BAND_U850 },<br>
<br>
/* LTE bands */<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_1, MM_MODEM_BAND_EUTRAN_I },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_2, MM_MODEM_BAND_EUTRAN_II },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_3, MM_MODEM_BAND_EUTRAN_III },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_4, MM_MODEM_BAND_EUTRAN_IV },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_5, MM_MODEM_BAND_EUTRAN_V },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_6, MM_MODEM_BAND_EUTRAN_VI },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_7, MM_MODEM_BAND_EUTRAN_VII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_8, MM_MODEM_BAND_EUTRAN_VIII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_9, MM_MODEM_BAND_EUTRAN_IX },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_10, MM_MODEM_BAND_EUTRAN_X },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_11, MM_MODEM_BAND_EUTRAN_XI },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_12, MM_MODEM_BAND_EUTRAN_XII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_13, MM_MODEM_BAND_EUTRAN_XIII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_14, MM_MODEM_BAND_EUTRAN_XIV },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_17, MM_MODEM_BAND_EUTRAN_XVII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_18, MM_MODEM_BAND_EUTRAN_XVIII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_19, MM_MODEM_BAND_EUTRAN_XIX },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_20, MM_MODEM_BAND_EUTRAN_XX },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_21, MM_MODEM_BAND_EUTRAN_XXI },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_24, MM_MODEM_BAND_EUTRAN_XXIV },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_25, MM_MODEM_BAND_EUTRAN_XXV },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_33, MM_MODEM_BAND_EUTRAN_XXXIII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_34, MM_MODEM_BAND_EUTRAN_XXXIV },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_35, MM_MODEM_BAND_EUTRAN_XXXV },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_36, MM_MODEM_BAND_EUTRAN_XXXVI },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_37, MM_MODEM_BAND_EUTRAN_XXXVII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_38, MM_MODEM_BAND_EUTRAN_XXXVIII },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_39, MM_MODEM_BAND_EUTRAN_XXXIX },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_40, MM_MODEM_BAND_EUTRAN_XL },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_41, MM_MODEM_BAND_EUTRAN_XLI },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_42, MM_MODEM_BAND_EUTRAN_XLI },<br>
- { QMI_NAS_ACTIVE_BAND_EUTRAN_43, MM_MODEM_BAND_EUTRAN_XLIII }<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_1, MM_MODEM_BAND_EUTRAN_1 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_2, MM_MODEM_BAND_EUTRAN_2 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_3, MM_MODEM_BAND_EUTRAN_3 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_4, MM_MODEM_BAND_EUTRAN_4 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_5, MM_MODEM_BAND_EUTRAN_5 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_6, MM_MODEM_BAND_EUTRAN_6 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_7, MM_MODEM_BAND_EUTRAN_7 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_8, MM_MODEM_BAND_EUTRAN_8 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_9, MM_MODEM_BAND_EUTRAN_9 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_10, MM_MODEM_BAND_EUTRAN_10 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_11, MM_MODEM_BAND_EUTRAN_11 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_12, MM_MODEM_BAND_EUTRAN_12 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_13, MM_MODEM_BAND_EUTRAN_13 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_14, MM_MODEM_BAND_EUTRAN_14 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_17, MM_MODEM_BAND_EUTRAN_17 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_18, MM_MODEM_BAND_EUTRAN_18 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_19, MM_MODEM_BAND_EUTRAN_19 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_20, MM_MODEM_BAND_EUTRAN_20 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_21, MM_MODEM_BAND_EUTRAN_21 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_24, MM_MODEM_BAND_EUTRAN_24 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_25, MM_MODEM_BAND_EUTRAN_25 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_33, MM_MODEM_BAND_EUTRAN_33 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_34, MM_MODEM_BAND_EUTRAN_34 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_35, MM_MODEM_BAND_EUTRAN_35 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_36, MM_MODEM_BAND_EUTRAN_36 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_37, MM_MODEM_BAND_EUTRAN_37 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_38, MM_MODEM_BAND_EUTRAN_38 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_39, MM_MODEM_BAND_EUTRAN_39 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_40, MM_MODEM_BAND_EUTRAN_40 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_41, MM_MODEM_BAND_EUTRAN_41 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_42, MM_MODEM_BAND_EUTRAN_42 },<br>
+ { QMI_NAS_ACTIVE_BAND_EUTRAN_43, MM_MODEM_BAND_EUTRAN_43 }<br>
<br>
/* NOTE. The following bands were unmatched:<br>
*<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.13.1.611.g7e3b11ae1-goog<br>
<br>
______________________________<wbr>_________________<br>
ModemManager-devel mailing list<br>
<a href="mailto:ModemManager-devel@lists.freedesktop.org">ModemManager-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/modemmanager-<wbr>devel</a><br>
</font></span></blockquote></div><br></div>