diff mbox series

gprs: allow attach on eutran networks

Message ID 20241003124737.666419-1-sean@geanix.com (mailing list archive)
State Accepted
Commit 8a61a0c4411079da034d3f17efc51dfd77a6b082
Headers show
Series gprs: allow attach on eutran networks | expand

Commit Message

Sean Nyekjaer Oct. 3, 2024, 12:47 p.m. UTC
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(-)

Comments

patchwork-bot+ofono@kernel.org Oct. 7, 2024, 6 p.m. UTC | #1
Hello:

This patch was applied to ofono.git (master)
by Denis Kenzior <denkenz@gmail.com>:

On Thu,  3 Oct 2024 14:47:34 +0200 you wrote:
> 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(-)

Here is the summary with links:
  - gprs: allow attach on eutran networks
    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=8a61a0c44110

You are awesome, thank you!
diff mbox series

Patch

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;