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