wavecom: enable usage of MM_MODEM_GSM_BAND_ANY in SetBand()
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user