From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] Specify vendor ID for Huawei modem while creating GPRS context
Date: Mon, 06 Dec 2010 21:21:22 -0600 [thread overview]
Message-ID: <4CFDA832.9090309@gmail.com> (raw)
In-Reply-To: <1291389772.2043.27.camel@Twins.TonnyLab.net>
[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]
Hi Tonny,
On 12/03/2010 09:22 AM, Tonny Tzeng wrote:
> ---
> plugins/huawei.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/plugins/huawei.c b/plugins/huawei.c
> index 25dfaca..32cf70d 100644
> --- a/plugins/huawei.c
> +++ b/plugins/huawei.c
> @@ -454,7 +454,7 @@ static void huawei_disconnect(gpointer user_data)
> data->sim_state == HUAWEI_SIM_STATE_INVALID_CS) {
> ofono_info("Reopened GPRS context channel");
>
> - data->gc = ofono_gprs_context_create(modem, 0, "atmodem",
> + data->gc = ofono_gprs_context_create(modem, OFONO_VENDOR_HUAWEI,
> "atmodem",
> data->modem);
There's no need to pass the vendor flag here. The atmodem gprs_context
driver does not have any vendor handling code inside it.
>
> if (data->gprs && data->gc)
> @@ -631,12 +631,12 @@ static void huawei_post_online(struct ofono_modem
> *modem)
>
> if (data->sim_state == HUAWEI_SIM_STATE_VALID ||
> data->sim_state == HUAWEI_SIM_STATE_INVALID_CS) {
> - data->gprs = ofono_gprs_create(modem, 0, "atmodem", data->pcui);
> + data->gprs = ofono_gprs_create(modem, OFONO_VENDOR_HUAWEI, "atmodem",
> data->pcui);
> if (data->ndis == TRUE)
> - data->gc = ofono_gprs_context_create(modem, 0,
> + data->gc = ofono_gprs_context_create(modem, OFONO_VENDOR_HUAWEI,
> "huaweimodem", data->pcui);
Same comment as above
> else
> - data->gc = ofono_gprs_context_create(modem, 0,
> + data->gc = ofono_gprs_context_create(modem, OFONO_VENDOR_HUAWEI,
> "atmodem", data->modem);
ditto.
>
> if (data->gprs && data->gc)
Regards,
-Denis
next prev parent reply other threads:[~2010-12-07 3:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-03 15:22 [PATCH] Specify vendor ID for Huawei modem while creating GPRS context Tonny Tzeng
2010-12-07 3:21 ` Denis Kenzior [this message]
2010-12-11 14:48 ` Tonny Tzeng
2010-12-11 14:55 ` Denis Kenzior
2010-12-11 16:37 ` Tonny Tzeng
2010-12-11 17:40 ` Denis Kenzior
2010-12-07 8:43 ` Kalle Valo
2010-12-07 10:29 ` Marcel Holtmann
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=4CFDA832.9090309@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.