Skip to content

V2 qmimodem: set data format when needed (and possible)

Christophe Ronco ofono 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 1 replyIn review

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] V2 qmimodem: set data format when needed (and possible)

Remarks from Denis integrated.

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

 Makefile.am                     |   3 +-
 drivers/qmimodem/gprs-context.c |  79 +++++++++++++++-
 drivers/qmimodem/qmi.c          | 200 ++++++++++++++++++++++++++++++++++++++++
 drivers/qmimodem/qmi.h          |  11 +++
 drivers/qmimodem/wda.h          |  25 +++++
 5 files changed, 314 insertions(+), 4 deletions(-)
 create mode 100644 drivers/qmimodem/wda.h
Signature · 1 line
2.11.0