All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 4/8] sierramodem: Report network registration status
Date: Sun, 30 Dec 2012 20:26:55 -0600	[thread overview]
Message-ID: <50E0F7EF.4050604@gmail.com> (raw)
In-Reply-To: <20121228193520.GJ18339@alittletooquiet.net>

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

Hi Forest,

On 12/28/2012 01:35 PM, Forest Bond wrote:
> From: Forest Bond<forest.bond@rapidrollout.com>
>
> The modem is polled every 5 seconds (unless inhibited by PPP)
> using AT!STATUS.

How is PPP entering the equation?  In Patch 5 you're using "swmodem" 
gprs-context driver, which is not PPP based AFAIK.

> ---
>   drivers/sierramodem/cdma-netreg.c |  300 +++++++++++++++++++++++++++++++++++++
>   1 files changed, 300 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/sierramodem/cdma-netreg.c b/drivers/sierramodem/cdma-netreg.c
> index 109b245..4cca769 100644
> --- a/drivers/sierramodem/cdma-netreg.c
> +++ b/drivers/sierramodem/cdma-netreg.c
> @@ -3,6 +3,9 @@
>    *  oFono - Open Source Telephony
>    *
>    *  Copyright (C) 2008-2011  Intel Corporation. All rights reserved.
> + *  Copyright (C) 2008-2009  Novell, Inc.
> + *  Copyright (C) 2009-2012  Red Hat, Inc.
> + *  Copyright (C) 2012  Lanedo GmbH.
>    *  Copyright (C) 2012  Outpost Embedded, LLC. All rights reserved.
>    *
>    *  This program is free software; you can redistribute it and/or modify
> @@ -27,6 +30,8 @@
>   #define _GNU_SOURCE
>   #include<glib.h>
>   #include<errno.h>
> +#include<ctype.h>
> +#include<string.h>
>
>   #include<ofono/log.h>
>   #include<ofono/modem.h>
> @@ -35,11 +40,300 @@
>   #include "gatchat.h"
>
>   #include "sierramodem.h"
> +#include "eri.h"
>
>   struct sierra_netreg_data {
>   	GAtChat *chat;
> +	guint status_id;
> +	guint status_source;
>   };
>
> +/* NOTE: STATUS parsing functions originated in ModemManager. */
> +
> +typedef enum {
> +	SYS_MODE_UNKNOWN,
> +	SYS_MODE_NO_SERVICE,
> +	SYS_MODE_CDMA_1X,
> +	SYS_MODE_EVDO_REV0,
> +	SYS_MODE_EVDO_REVA
> +} SysMode;
> +

Again, no CamelCase or typedefs please.

Regards,
-Denis

  reply	other threads:[~2012-12-31  2:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28 19:31 [PATCH 0/8] Sierra Wireless CDMA modem support Forest Bond
2012-12-28 19:34 ` [PATCH 1/8] sierramodem: Add skeleton for Sierra Wireless modem driver Forest Bond
2012-12-28 19:34 ` [PATCH 2/8] sierramodem: Add skeleton cdma netreg driver Forest Bond
2012-12-31  2:11   ` Denis Kenzior
2012-12-28 19:35 ` [PATCH 3/8] sierramodem: Add ERI parsing functions Forest Bond
2012-12-31  2:19   ` Denis Kenzior
2012-12-28 19:35 ` [PATCH 4/8] sierramodem: Report network registration status Forest Bond
2012-12-31  2:26   ` Denis Kenzior [this message]
2012-12-28 19:35 ` [PATCH 5/8] sierra: Create GPRS context in post_sim function Forest Bond
2012-12-31  2:39   ` Denis Kenzior
2012-12-28 19:36 ` [PATCH 6/8] sierra: Initialize GSM error reporting separately Forest Bond
2012-12-31  2:40   ` Denis Kenzior
2012-12-28 19:36 ` [PATCH 7/8] sierra: Support CDMA modems Forest Bond
2012-12-31  2:34   ` Denis Kenzior
2013-03-04 16:48     ` Forest Bond
2013-03-04 23:03       ` Denis Kenzior
2013-03-05 19:36         ` Forest Bond
2013-03-05 20:52           ` Denis Kenzior
2013-03-05 21:45           ` =?unknown-8bit?q?Bj=C3=B8rn?= Mork
2013-03-05 22:15             ` Forest Bond
2013-03-06  9:43               ` =?unknown-8bit?q?Bj=C3=B8rn?= Mork
2013-03-06 13:36                 ` Forest Bond
2012-12-28 19:36 ` [PATCH 8/8] udevng: Support single-interface sierra devices Forest Bond

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=50E0F7EF.4050604@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 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.