broadband-modem-qmi: fix logic to include GSM/WCDM acquisition order preference

This commit is contained in:
Aleksander Morgado
2013-03-12 18:50:20 +01:00
parent 4e6400d3c8
commit 66c5416e3c
+2 -1
View File
@@ -2607,7 +2607,8 @@ set_allowed_modes_context_step (SetAllowedModesContext *ctx)
/* Only set acquisition order preference if both 2G and 3G given as allowed */
if (mm_iface_modem_is_3gpp (MM_IFACE_MODEM (ctx->self)) &&
(ctx->allowed & (MM_MODEM_MODE_2G | MM_MODEM_MODE_3G))) {
ctx->allowed & MM_MODEM_MODE_2G &&
ctx->allowed & MM_MODEM_MODE_3G) {
QmiNasGsmWcdmaAcquisitionOrderPreference order;
order = mm_modem_mode_to_qmi_gsm_wcdma_acquisition_order_preference (ctx->preferred);