wavecom: enable usage of MM_MODEM_GSM_BAND_ANY in SetBand()

This commit is contained in:
Aleksander Morgado
2011-04-29 12:31:14 +02:00
parent fc1f35baf6
commit 863dbca631
+8
View File
@@ -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++) {