Open Source Telephony
 help / color / mirror / Atom feed
From: Piotr Haber <gluedig@gmail.com>
To: ofono@ofono.org
Subject: [PATCH] atmodem: add LTE to Telit #PSNT status parser
Date: Wed, 25 Jan 2017 10:23:56 +0100	[thread overview]
Message-ID: <20170125092356.25928-1-gluedig@gmail.com> (raw)
In-Reply-To: <b3830629-9b59-24b9-de5e-01f87f3fb6b0@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

Network type of 4 in Telit #PSNT command response
denotes LTE network
---
 drivers/atmodem/gprs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/atmodem/gprs.c b/drivers/atmodem/gprs.c
index 5724f861..7ea9f005 100644
--- a/drivers/atmodem/gprs.c
+++ b/drivers/atmodem/gprs.c
@@ -323,6 +323,9 @@ static void telit_mode_notify(GAtResult *result, gpointer user_data)
 	case 3:
 		bearer = 5;    /* HSDPA */
 		break;
+	case 4:
+		bearer = 7;    /* LTE */
+		break;
 	default:
 		bearer = 0;
 		break;
-- 
2.11.0


  reply	other threads:[~2017-01-25  9:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-24 13:58 [PATCH] atmodem: add LTE to Telit #PSNT parser Piotr Haber
2017-01-24 18:33 ` Denis Kenzior
2017-01-25  9:23   ` Piotr Haber [this message]
2017-01-25 16:01     ` [PATCH] atmodem: add LTE to Telit #PSNT status parser Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170125092356.25928-1-gluedig@gmail.com \
    --to=gluedig@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox