From 9c08e54fb9d2f0b9341c2c98291551d8c9917c78 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 31 Jan 2022 22:42:48 +0100 Subject: shared-qmi: filter out modes not currently available Do not build the mask of "all" modes based only on the supported radio interfaces, also filter out those modes that would not be available based on the current capabilities enabled. --- src/tests/test-modem-helpers-qmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests') diff --git a/src/tests/test-modem-helpers-qmi.c b/src/tests/test-modem-helpers-qmi.c index 781f9d4f..f49e1e89 100644 --- a/src/tests/test-modem-helpers-qmi.c +++ b/src/tests/test-modem-helpers-qmi.c @@ -262,7 +262,7 @@ test_supported_modes_uml290_lte (void) }; ctx.multimode = TRUE; - ctx.all = MM_MODEM_MODE_2G | MM_MODEM_MODE_3G | MM_MODEM_MODE_4G; + ctx.all = MM_MODEM_MODE_4G; ctx.nas_ssp_supported = TRUE; ctx.nas_tp_supported = FALSE; ctx.current_capabilities = MM_MODEM_CAPABILITY_LTE; -- cgit v1.2.3-70-g09d2