[LEDE-DEV] [PATCH 0/2] uqmi: "FCC Auth" and "QMI-in-MBIM" support

Bjørn Mork bjorn at mork.no
Sat Aug 20 17:01:08 PDT 2016


I've been wondering about how to implement the MBIM QMI feature in
uqmi/umbim for a while.  This is the only method we know for sending
the "Set FCC Authentication" request in MBIM mode.

But I didn't just want to add support for that single use case. The
completely generic solution in libqmi/libmbim has been a great success,
allowing arbitrary QMI commands to be send to these modems when they
are in MBIM mode.  This is useful for so much more than FCC Auth. So
I wanted a similarily generic solution for uqmi too.

This is what I came up with.  As you can see, it does not change
anything in umbim. But it still depends on umbim (or similar MBIM
tools) to create a proper MBIM session, as uqmi can only send one
specific MBIM command:  QMI requests.  umbim must therefore open
the MBIM session before any uqmi request can succeed.

The second patch adds the "Set FCC Authentication" support. There
are no TLVs associated with this request, so it is pretty simple.


Bjørn Mork (2):
  uqmi: add support for MBIM devices with QMI service
  dms: add "Set FCC Authentication" request

 CMakeLists.txt            |  2 +-
 commands-dms.c            |  8 ++++++
 commands-dms.h            |  4 ++-
 data/qmi-service-dms.json | 67 ++++++++++++++++++++++++++++++++++++++++++++---
 dev.c                     | 52 +++++++++++++++++++++++++++---------
 main.c                    |  7 ++++-
 mbim.c                    | 51 ++++++++++++++++++++++++++++++++++++
 mbim.h                    | 55 ++++++++++++++++++++++++++++++++++++++
 uqmi.h                    |  2 ++
 9 files changed, 228 insertions(+), 20 deletions(-)
 create mode 100644 mbim.c
 create mode 100644 mbim.h

-- 
2.9.3




More information about the Lede-dev mailing list