From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] telitmodem: support for CDC-NCM network adapter
Date: Fri, 27 Jan 2017 20:36:52 -0600 [thread overview]
Message-ID: <820fe554-399e-db09-d54e-e2a1842f1632@gmail.com> (raw)
In-Reply-To: <20170127095424.19685-2-gluedig@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1383 bytes --]
Hi Piotr,
On 01/27/2017 03:54 AM, Piotr Haber wrote:
> Network Control Model is a new Communication Device Class
> protocol for exchanging Ethernet frames over USB.
> NCM is intended to be used with high-speed network
> attachments such as HSDPA and LTE data services.
> ---
> Makefile.am | 3 +-
> drivers/telitmodem/gprs-context-ncm.c | 485 ++++++++++++++++++++++++++++++++++
> drivers/telitmodem/telitmodem.c | 2 +
> drivers/telitmodem/telitmodem.h | 2 +
> 4 files changed, 491 insertions(+), 1 deletion(-)
> create mode 100644 drivers/telitmodem/gprs-context-ncm.c
>
I went ahead and applied this patch with a couple of small modifications:
<snip>
> + if ((unsigned int) cid == gcd->active_context) {
> + found = TRUE;
> +
> + if (gcd->address && strcmp(gcd->address, "") != 0) {
gcd->address is always true, so this if condition was simplified to simply:
if (strcmp(gcd->address, "") != 0)
> + strncpy(gcd->netmask,
> + &ip_mask[strlen(gcd->address)+1],
> + sizeof(gcd->netmask));
> + }
I also took out the curly brackets since they are not needed.
> +
> + g_at_chat_send(gcd->chat, "AT+CGATT=0", none_prefix, NULL, NULL, NULL);
> +
I took this out. There's no way that gprs context driver should be
detaching. Why is this needed anyway?
Regards,
-Denis
next prev parent reply other threads:[~2017-01-28 2:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-27 9:54 [PATCH 0/3] support Telit LE910 V2 modem Piotr Haber
2017-01-27 9:54 ` [PATCH 1/3] telitmodem: support for CDC-NCM network adapter Piotr Haber
2017-01-28 2:36 ` Denis Kenzior [this message]
2017-01-27 9:54 ` [PATCH 2/3] udevng: setup of Telit LE910V2 Piotr Haber
2017-01-28 2:30 ` Denis Kenzior
2017-01-27 9:54 ` [PATCH 3/3] xe910: support for Telit LE910V2 modem Piotr Haber
2017-01-28 2:37 ` Denis Kenzior
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=820fe554-399e-db09-d54e-e2a1842f1632@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox