From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH 3/3] huawei: add gprs context
Date: Fri, 23 Apr 2010 16:26:05 +0200 [thread overview]
Message-ID: <1272032765.22838.73.camel@localhost.localdomain> (raw)
In-Reply-To: <20100423134026.2107.49200.stgit@potku.valot.fi>
[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]
Hi Kalle,
> Tested with Huawei E1552 HSDPA USB stick using a finnish Saunalahti prepaid
> SIM.
> ---
>
> plugins/huawei.c | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/plugins/huawei.c b/plugins/huawei.c
> index 90fdcf0..fd1528f 100644
> --- a/plugins/huawei.c
> +++ b/plugins/huawei.c
> @@ -41,6 +41,8 @@
> #include <ofono/gprs.h>
> #include <ofono/voicecall.h>
> #include <ofono/log.h>
> +#include <ofono/gprs.h>
> +#include <ofono/gprs-context.h>
>
> #include <drivers/atmodem/vendor.h>
>
> @@ -178,11 +180,19 @@ static void huawei_pre_sim(struct ofono_modem *modem)
> static void huawei_post_sim(struct ofono_modem *modem)
> {
> struct huawei_data *data = ofono_modem_get_data(modem);
> + struct ofono_gprs_context *gc;
> + struct ofono_gprs *gprs;
>
> DBG("%p", modem);
>
> ofono_netreg_create(modem, OFONO_VENDOR_HUAWEI, "atmodem", data->chat);
> ofono_sms_create(modem, OFONO_VENDOR_QUALCOMM_MSM, "atmodem", data->chat);
> +
> + gprs = ofono_gprs_create(modem, 0, "atmodem", data->chat);
> + gc = ofono_gprs_context_create(modem, 0, "atmodem", data->chat);
> +
> + if (gprs && gc)
> + ofono_gprs_add_context(gprs, gc);
> }
this patch is obviously correct if the PPP part and generic GPRS context
support is working correct. I haven't had time to verify that yet. So
far we only used gsmdial for testing.
Regards
Marcel
prev parent reply other threads:[~2010-04-23 14:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 13:40 [PATCH 0/3] Huawei E1552 hacks Kalle Valo
2010-04-23 13:40 ` [PATCH 1/3] atmodem: add signal strength support for huawei Kalle Valo
2010-04-23 14:22 ` Marcel Holtmann
2010-04-23 15:40 ` Kalle Valo
2010-04-23 15:53 ` Denis Kenzior
2010-04-26 10:45 ` Kalle Valo
2010-04-23 13:40 ` [PATCH 2/3] atmodem: add a huawei hack to check attachment status Kalle Valo
2010-04-23 14:24 ` Marcel Holtmann
2010-04-23 15:43 ` Kalle Valo
2010-04-23 15:50 ` Denis Kenzior
2010-04-26 10:44 ` Kalle Valo
2010-04-23 13:40 ` [PATCH 3/3] huawei: add gprs context Kalle Valo
2010-04-23 14:26 ` Marcel Holtmann [this message]
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=1272032765.22838.73.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--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