From 9dbf9a8d0ec50be69b2b0f09634f12e04a4efd15 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 28 Aug 2012 16:26:28 +0200 Subject: [PATCH] iface-modem: don't validate against supported bands if these are unknown --- src/mm-iface-modem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index dbd4b302..04c95be0 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -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;