mm-shared-qmi: Add check for 5g modem iface type

This commit is contained in:
Prakash Pabba
2021-11-14 20:19:37 +05:30
parent a498e4674d
commit 35d5287dda
+3
View File
@@ -11,6 +11,7 @@
* GNU General Public License for more details:
*
* Copyright (C) 2018 Aleksander Morgado <aleksander@aleksander.es>
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <config.h>
@@ -1430,6 +1431,8 @@ mm_shared_qmi_set_current_modes (MMIfaceModem *self,
ctx->allowed |= MM_MODEM_MODE_3G;
if (mm_iface_modem_is_4g (self))
ctx->allowed |= MM_MODEM_MODE_4G;
if (mm_iface_modem_is_5g (self))
ctx->allowed |= MM_MODEM_MODE_5G;
ctx->preferred = MM_MODEM_MODE_NONE;
} else {
ctx->allowed = allowed;