[PATCH] gprs: allow attach on eutran networks

Sean Nyekjaer <[email protected]>
Newsgroups dev.linux.lists.ofono
Message-ID <[email protected]>
SIMCom A7672E-FASE shows attached on LTE with +CREG <stat> either
6 registered for "SMS only", home network (applicable only when E-UTRAN)
7 registered for "SMS only", roaming (applicable only when <AcT> indicates E-UTRAN)
+COPS supplies the <AcT> = EUTRAN
---
 src/gprs.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gprs.c b/src/gprs.c
index 97d6f382..46668820 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -1731,10 +1731,12 @@ static void gprs_netreg_update(struct ofono_gprs *gprs)
 	if (gprs->netreg_status < 0)
 		return;
 
-	attach = gprs->netreg_status == NETWORK_REGISTRATION_STATUS_REGISTERED;
+	attach = (gprs->netreg_status == NETWORK_REGISTRATION_STATUS_REGISTERED) ||
+		(gprs->netreg_status == NETWORK_REGISTRATION_STATUS_REGISTERED_SMS_EUTRAN);
 
 	attach = attach || (gprs->roaming_allowed &&
-		gprs->netreg_status == NETWORK_REGISTRATION_STATUS_ROAMING);
+		((gprs->netreg_status == NETWORK_REGISTRATION_STATUS_ROAMING) ||
+		(gprs->netreg_status == NETWORK_REGISTRATION_STATUS_ROAMING_SMS_EUTRAN)));
 
 	attach = attach && gprs->powered;
 
-- 
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.