iface-modem: don't validate against supported bands if these are unknown

This commit is contained in:
Aleksander Morgado
2012-08-28 16:26:28 +02:00
parent 67b051cf69
commit 9dbf9a8d0e

View File

@@ -1512,7 +1512,8 @@ validate_bands (const GArray *supported_bands_array,
}
if (supported_bands_array->len > 1 ||
g_array_index (supported_bands_array, MMModemBand, 0) != MM_MODEM_BAND_ANY) {
(g_array_index (supported_bands_array, MMModemBand, 0) != MM_MODEM_BAND_ANY &&
g_array_index (supported_bands_array, MMModemBand, 0) != MM_MODEM_BAND_UNKNOWN)) {
gboolean found = FALSE;
guint j;