modem-helpers-mbim: allow optional outputs in mm_signal_from_mbim_signal_state()

Fixes 470dff235c
This commit is contained in:
Nagi Marupaka
2023-05-13 07:18:48 +00:00
committed by Aleksander Morgado
parent eeba2ff32b
commit d95114a576

View File

@@ -1160,12 +1160,18 @@ mm_signal_from_mbim_signal_state (MbimDataClass data_class,
MMSignal **last_updated = NULL; MMSignal **last_updated = NULL;
guint n_out_updated = 0; guint n_out_updated = 0;
*out_cdma = NULL; if (out_cdma)
*out_evdo = NULL; *out_cdma = NULL;
*out_gsm = NULL; if (out_evdo)
*out_umts = NULL; *out_evdo = NULL;
*out_lte = NULL; if (out_gsm)
*out_nr5g = NULL; *out_gsm = NULL;
if (out_umts)
*out_umts = NULL;
if (out_lte)
*out_lte = NULL;
if (out_nr5g)
*out_nr5g = NULL;
/* When MBIMEx v2.0 is available, we get LTE+5GNR information reported /* When MBIMEx v2.0 is available, we get LTE+5GNR information reported
* in the RSRP/SNR list of items. */ * in the RSRP/SNR list of items. */