aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/mm-modem-wavecom-gsm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/mm-modem-wavecom-gsm.c b/plugins/mm-modem-wavecom-gsm.c
index 362fec23..3c8a49b0 100644
--- a/plugins/mm-modem-wavecom-gsm.c
+++ b/plugins/mm-modem-wavecom-gsm.c
@@ -268,6 +268,10 @@ set_2g_band (MMModemGsmNetwork *self,
return;
}
+ /* If we get ANY, reset to all-2G bands to get the proper value */
+ if (band == MM_MODEM_GSM_BAND_ANY)
+ band = ALL_2G_BANDS;
+
/* Loop looking for allowed masks */
wavecom_band = '\0';
for (i = 0; i < G_N_ELEMENTS (bands_2g); i++) {
@@ -315,6 +319,10 @@ set_3g_band (MMModemGsmNetwork *self,
return;
}
+ /* If we get ANY, reset to all-3G bands to get the proper value */
+ if (band == MM_MODEM_GSM_BAND_ANY)
+ band = ALL_3G_BANDS;
+
/* Loop looking for allowed masks */
wavecom_band = 0;
for (i = 0; i < G_N_ELEMENTS (bands_3g); i++) {