From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] Skip unsolicited CREG/CGREG correctly
Date: Thu, 02 Dec 2010 15:22:21 -0600 [thread overview]
Message-ID: <4CF80E0D.6010901@gmail.com> (raw)
In-Reply-To: <1291299788.2038.2.camel@Twins.TonnyLab.net>
[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]
Hi Tonny,
On 12/02/2010 08:23 AM, Tonny Tzeng wrote:
> This patch skip unsolicited CREG/CGREG correctly.
>
> Signed-off-by: Tonny Tzeng <tonny.tzeng@gmail.com>
Please don't use Signed-off-by
> ---
> 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;
And this fix is wrong. what this is doing is skipping the parsing of
the lac/ci values if we're not registered / roaming. Using continue
here will cause the parser to fail for those cases.
What you probably meant was continuing if the status was not between 1
and 5. But even that won't really help you if an lac of 1..5 is
encountered ;)
>
> switch (vendor) {
> case OFONO_VENDOR_HUAWEI:
Regards,
-Denis
next prev parent reply other threads:[~2010-12-02 21:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 14:23 [PATCH] Skip unsolicited CREG/CGREG correctly Tonny Tzeng
2010-12-02 21:22 ` Denis Kenzior [this message]
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=4CF80E0D.6010901@gmail.com \
--to=denkenz@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