aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-28 16:26:28 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-28 17:15:18 +0200
commit9dbf9a8d0ec50be69b2b0f09634f12e04a4efd15 (patch)
tree66e411856130893df0c445e357745bc464ff0b10 /src/mm-iface-modem.c
parent67b051cf6999526d961ea7bb657644502df9ef90 (diff)
iface-modem: don't validate against supported bands if these are unknown
Diffstat (limited to 'src/mm-iface-modem.c')
-rw-r--r--src/mm-iface-modem.c3
1 files changed, 2 insertions, 1 deletions
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;