diff mbox series

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

Message ID 20241121152949.56962-10-denkenz@gmail.com (mailing list archive)
State Accepted
Commit 3dce963d9bfb916e0a02686d4cc93056b694253c
Headers show
Series [01/10] qmi: wda: Add qmi_wda_set_data_format utility | expand

Commit Message

Denis Kenzior Nov. 21, 2024, 3:29 p.m. UTC
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 mbox series

Patch

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;