From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH] ifx: remove setting to offline during modem enable
Date: Wed, 02 Feb 2011 17:55:20 +0100 [thread overview]
Message-ID: <1296665720.1520.333.camel@aeonflux> (raw)
In-Reply-To: <1296665571-2209-1-git-send-email-jeevaka.badrappan@elektrobit.com>
[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]
Hi Jeevaka,
> plugins/ifx.c | 21 ++-------------------
> 1 files changed, 2 insertions(+), 19 deletions(-)
>
> diff --git a/plugins/ifx.c b/plugins/ifx.c
> index 411c012..ae53193 100644
> --- a/plugins/ifx.c
> +++ b/plugins/ifx.c
> @@ -345,23 +345,6 @@ error:
> ofono_modem_set_powered(modem, FALSE);
> }
>
> -static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data)
> -{
> - struct ofono_modem *modem = user_data;
> - struct ifx_data *data = ofono_modem_get_data(modem);
> -
> - DBG("");
> -
> - if (!ok) {
> - shutdown_device(data);
> - ofono_modem_set_powered(modem, FALSE);
> - return;
> - }
> -
> - g_at_chat_send(data->dlcs[AUX_DLC], "AT+XGENDATA", NULL,
> - xgendata_query, modem, NULL);
> -}
> -
> static gboolean dlc_setup(gpointer user_data)
> {
> struct ofono_modem *modem = user_data;
> @@ -378,8 +361,8 @@ static gboolean dlc_setup(gpointer user_data)
> g_at_chat_set_slave(data->dlcs[GPRS2_DLC], data->dlcs[NETREG_DLC]);
> g_at_chat_set_slave(data->dlcs[GPRS3_DLC], data->dlcs[NETREG_DLC]);
>
> - g_at_chat_send(data->dlcs[AUX_DLC], "AT+CFUN=4", NULL,
> - cfun_enable, modem, NULL);
> + g_at_chat_send(data->dlcs[AUX_DLC], "AT+XGENDATA", NULL,
> + xgendata_query, modem, NULL);
I toughth we talked about CFUN=4 in ifx_disable on IRC. This one is
needed to bring the modem up in offline mode. I'd rather not remove this
one.
Regards
Marcel
next prev parent reply other threads:[~2011-02-02 16:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 16:52 [PATCH] ifx: remove setting to offline during modem enable Jeevaka Badrappan
2011-02-02 16:55 ` Marcel Holtmann [this message]
2011-02-02 17:41 ` Predon, Frederic
2011-02-02 18:07 ` Marcel Holtmann
2011-02-02 18:17 ` Predon, Frederic
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=1296665720.1520.333.camel@aeonflux \
--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 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.