[PATCH 1/5] sim7100: Update to handle broader A76XX modem series

Sean Nyekjaer <[email protected]> Thu, 21 Aug 2025 13:24:09 +0200
Newsgroups dev.linux.lists.ofono
Message-ID <[email protected]>
Update the model detection logic in cgmm_cb. Change the prefix
check from "A7672" to "A76" to support the broader A76XX series
of modems.
---
 plugins/sim7100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/sim7100.c b/plugins/sim7100.c
index 02f5b537f4d2dcd68046ab6dbac37d57706e2d3f..c4fc5798f746eb1e510302b575e38ca6924cd014 100644
--- a/plugins/sim7100.c
+++ b/plugins/sim7100.c
@@ -174,7 +174,7 @@ static void cgmm_cb(gboolean ok, GAtResult *result, gpointer user_data)
 
 		DBG("modem model: %s", model);
 
-		if (g_str_has_prefix(model, "A7672"))
+		if (g_str_has_prefix(model, "A76"))
 			data->model = SIMCOM_A76XX;
 
 		break;

-- 
2.50.1