This patch skip unsolicited CREG/CGREG correctly.

Signed-off-by: Tonny Tzeng <[email protected]>
---
 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


_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to