wavecom: break loop matching 2G bands if exact combination found

This commit is contained in:
Aleksander Morgado
2020-06-02 10:16:33 +02:00
parent a6607a5e7d
commit d36df68226

View File

@@ -851,8 +851,10 @@ set_bands_2g (GTask *task,
g_array_append_vals (supported_combination, bands_2g[i].mm_bands, bands_2g[i].n_mm_bands);
/* Check if the given array is exactly one of the supported combinations */
if (mm_common_bands_garray_cmp (bands_array_final, supported_combination))
if (mm_common_bands_garray_cmp (bands_array_final, supported_combination)) {
wavecom_band = bands_2g[i].wavecom_band;
break;
}
}
if (wavecom_band == '\0') {