From: Tonny Tzeng <tonny.tzeng@gmail.com>
To: ofono@ofono.org
Subject: [PATCH] Skip unsolicited CREG/CGREG correctly
Date: Thu, 02 Dec 2010 22:23:08 +0800 [thread overview]
Message-ID: <1291299788.2038.2.camel@Twins.TonnyLab.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 731 bytes --]
This patch skip unsolicited CREG/CGREG correctly.
Signed-off-by: Tonny Tzeng <tonny.tzeng@gmail.com>
---
drivers/atmodem/atutil.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/atmodem/atutil.c b/drivers/atmodem/atutil.c
index b6f0d92..2ca7b44 100644
--- a/drivers/atmodem/atutil.c
+++ b/drivers/atmodem/atutil.c
@@ -244,8 +244,9 @@ gboolean at_util_parse_reg(GAtResult *result, const
char *prefix,
continue;
/* Some firmware will report bogus lac/ci when unregistered */
+ /* in this case, we should skip it */
if (s != 1 && s != 5)
- goto out;
+ continue;
switch (vendor) {
case OFONO_VENDOR_HUAWEI:
--
1.7.2.2
next reply other threads:[~2010-12-02 14:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 14:23 Tonny Tzeng [this message]
2010-12-02 21:22 ` [PATCH] Skip unsolicited CREG/CGREG correctly Denis Kenzior
2010-12-03 9:34 ` Tonny Tzeng
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=1291299788.2038.2.camel@Twins.TonnyLab.net \
--to=tonny.tzeng@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