From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 5/8][RFC] STATUS, FETCH and TERMINAL RESPONSE for AT driver.
Date: Wed, 17 Mar 2010 14:56:27 -0600 [thread overview]
Message-ID: <201003171556.27681.denkenz@gmail.com> (raw)
In-Reply-To: <1268688112-4026-1-git-send-email-andrew.zaborowski@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]
Hi Andrew,
> Fix ENVELOPE implementation.
> @@ -753,7 +794,7 @@ static void at_sim_envelope(struct ofono_sim *sim, int
> length, ofono_sim_read_cb_t cb, void *data)
> {
> struct sim_data *sd = ofono_sim_get_data(sim);
> - struct cb_data *cbd = cb_data_new(cb, data);
> + struct sim_cb_data *cbd = sim_cb_data_new(sd, cb, data);
> char *buf = g_try_new(char, 64 + length * 2);
> int len, ret;
>
> @@ -761,12 +802,14 @@ static void at_sim_envelope(struct ofono_sim *sim,
> int length, goto error;
>
> len = sprintf(buf, "AT+CSIM=%i,A0C20000%02hhX",
> - 10 + length * 2, length);
> + 12 + length * 2, length);
>
> for (; length; length--)
> len += sprintf(buf + len, "%02hhX", *command++);
>
> - ret = g_at_chat_send(sd->chat, buf, crsm_prefix,
> + len += sprintf(buf + len, "FF");
> +
> + ret = g_at_chat_send(sd->chat, buf, csim_prefix,
> at_csim_envelope_cb, cbd, g_free);
I really need more detailed explanation why appending FF here is necessary.
And this really belongs in a separate patch.
>
> g_free(buf);
> @@ -785,6 +828,219 @@ error:
> CALLBACK_WITH_FAILURE(cb, NULL, 0, data);
> }
>
>
Regards,
-Denis
prev parent reply other threads:[~2010-03-17 20:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 21:21 [PATCH 5/8][RFC] STATUS, FETCH and TERMINAL RESPONSE for AT driver Andrzej Zaborowski
2010-03-17 20:56 ` Denis Kenzior [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=201003171556.27681.denkenz@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.