[RFC] atmodem: let +COPS: report access technology

Sean Nyekjaer <[email protected]>
Newsgroups dev.linux.lists.ofono
Message-ID <[email protected]>
When using the SIMCom A7672E-FASE in gsm mode, gsm is never reported as
access technology. Fix this by letting +COPS: report it.
---
For EUTRAN networks at_creg_cb() is setting the correct technology.
But as I read it, CREG doesn't differentiate between GSM and UMTS.
Can we fix this by using the technology from +COPS: ?

 drivers/atmodem/network-registration.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/atmodem/network-registration.c b/drivers/atmodem/network-registration.c
index 46b8512a..ccd01234 100644
--- a/drivers/atmodem/network-registration.c
+++ b/drivers/atmodem/network-registration.c
@@ -353,6 +353,9 @@ static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data)
 	op.status = 2;
 	op.tech = tech;
 
+	/* Set current access technology */
+	nd->tech = tech;
+
 	DBG("cops_cb: %s, %s %s %d", name, nd->mcc, nd->mnc, tech);
 
 	cb(&error, &op, cbd->data);
-- 
2.46.2
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.