All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Skip unsolicited CREG/CGREG correctly
@ 2010-12-02 14:23 Tonny Tzeng
  2010-12-02 21:22 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Tonny Tzeng @ 2010-12-02 14:23 UTC (permalink / raw)
  To: ofono

[-- 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-03  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 14:23 [PATCH] Skip unsolicited CREG/CGREG correctly Tonny Tzeng
2010-12-02 21:22 ` Denis Kenzior
2010-12-03  9:34   ` Tonny Tzeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.