All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christophe Ronco <c.ronco@kerlink.fr>
To: ofono@ofono.org
Subject: [PATCH 0/2] qmimodem: set data format when needed (and possible)
Date: Thu, 19 Jan 2017 09:15:16 +0100	[thread overview]
Message-ID: <20170119081518.16765-1-c.ronco@kerlink.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]

MC7430 is a raw-ip only modem. If accessed through 802.3 network interface,
no packets can be received (IP layer headers missing).

To be able to start a data connection with this modem, we must tell driver
(qmi_wwan.c) to mount a raw-ip network interface instead of a 802.3 interface.

This has been implemented in libqmi package. The idea is:
 - ask modem what data format it wants (raw-ip or 802.3)
 - ask driver what data format it expects (raw-ip or 802.3)
 - change driver data format if values do not match

Patch has been split in two.
In first part, we just add the code needed to get/set driver expected data
format but nobody ever call these functions.
In second part, logic explained above is implemented.
If anything fail (can't get expected data format, can't get modem data format,
...), we just don't set anything and continue.

To be able to use this, a kernel 4.5 or more recent is needed.

Christophe Ronco (2):
  qmimodem: get/set kernel device driver data format
  qmimodem: change kernel driver data format if needed

 drivers/qmimodem/gprs-context.c |  79 +++++++++++++++-
 drivers/qmimodem/qmi.c          | 200 ++++++++++++++++++++++++++++++++++++++++
 drivers/qmimodem/qmi.h          |  11 +++
 drivers/qmimodem/wda.h          |  25 +++++
 4 files changed, 312 insertions(+), 3 deletions(-)
 create mode 100644 drivers/qmimodem/wda.h

-- 
2.11.0


             reply	other threads:[~2017-01-19  8:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19  8:15 Christophe Ronco [this message]
2017-01-19  8:15 ` [PATCH 1/2] qmimodem: get/set kernel device driver data format Christophe Ronco
2017-01-19 20:12   ` Denis Kenzior
2017-01-19  8:15 ` [PATCH 2/2] qmimodem: change kernel driver data format if needed Christophe Ronco
2017-01-19 20:20   ` Denis Kenzior
2017-02-01 10:32 ` [PATCH 0/2] V2 qmimodem: set data format when needed (and possible) Christophe Ronco
2017-02-01 10:32   ` [PATCH 1/2] qmimodem: get/set kernel device driver data format Christophe Ronco
2017-02-01 10:32   ` [PATCH 2/2] qmimodem: change kernel driver data format if needed Christophe Ronco
2017-02-02 17:49   ` [PATCH 0/2] V2 qmimodem: set data format when needed (and possible) 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=20170119081518.16765-1-c.ronco@kerlink.fr \
    --to=c.ronco@kerlink.fr \
    --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.