[PATCH 10/10] qmimodem: gprs-context: Fix non-default bearer activation

Denis Kenzior <[email protected]>
Newsgroups dev.linux.lists.ofono
Message-ID <[email protected]>
start_network() expects a QMI IP_SUPPORT enumeration, which is obtained
from WDS Get LTE Attach Parameters response.  However,
activate_primary() was converting the context type to a QMI PDP Type
enumeration, which was subtly different.  This broke non-default context
activation for dual-stack contexts.

Fixes: 3ee784aa9d9c ("qmi: gprs-context: Dual-Stack context activation support")
---
 drivers/qmimodem/gprs-context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/qmimodem/gprs-context.c b/drivers/qmimodem/gprs-context.c
index a8ac3cb18c80..484cc7d8ddb9 100644
--- a/drivers/qmimodem/gprs-context.c
+++ b/drivers/qmimodem/gprs-context.c
@@ -478,7 +478,7 @@ static void qmi_activate_primary(struct ofono_gprs_context *gc,
 					OFONO_GPRS_PROTO_IPV4V6))
 		goto error;
 
-	ip_type = qmi_wds_pdp_type_from_ofono(ctx->proto);
+	ip_type = qmi_wds_ip_support_from_ofono(ctx->proto);
 	if (ip_type < 0)
 		goto error;
 
-- 
2.47.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.