Point to Point interface over qmi_wwan device

Tang Nguyen tang_nguyen at yahoo.com
Wed Oct 5 13:21:50 UTC 2016


--------------------------------------------
On Wed, 10/5/16, Bjørn Mork <bjorn at mork.no> wrote:

 Subject: Re: Point to Point interface over qmi_wwan device
 To: "Dan Williams" <dcbw at redhat.com>
 Cc: "Reinhard Speyerer" <rspmn at arcor.de>, "Tang Nguyen" <tang_nguyen at yahoo.com>, "libqmi (development)" <libqmi-devel at lists.freedesktop.org>
 Date: Wednesday, October 5, 2016, 1:59 AM
 
 Dan Williams <dcbw at redhat.com>
 writes:
 > On Tue, 2016-10-04 at 22:49
 +0200, Reinhard Speyerer wrote:
 >
 >> that matches the results from my tests
 with a MC7304. For MSM9x15
 >> based
 devices like the MC7304 the use of DHCP seems to be a
 trigger
 >> to
 >>
 pass IPv4 traffic over the network interface as long as it
 is set to
 >> Ethernet mode. Only using
 a qmi_wwan version with raw IP support and
 >> switching the mobile use raw IP with
 qmicli made this configuration
 >> work
 for me without using a DHCP client.
 >
 > Yeah, that was going to be my next
 suggestion.  Use rawip mode:
 >
 > qmicli -d /dev/cdc-wdm0
 --wda-set-data-format=raw-ip
 > qmicli -d
 /dev/cdc-wdm0 --set-expected-data-format=raw-ip
 >
 > or, if your device is
 older and doesn't have the QMI WDA service:
 >
 > qmicli -d
 /dev/cdc-wdm0
 --device-open-net="net-raw-ip|net-no-qos-header" --dms-get-ids
 > qmicli -d /dev/cdc-wdm0
 --set-expected-data-format=raw-ip
 >
 > At least, I think those are the right
 commands.  I'm sure Bjorn will
 >
 correct me...
 
> Like I would
 remember anything :)
 
 >Anyway, the DHCP required for ethernet mode
 >really makes a lot of
 >sense. They are
 >probably using the DHCP transaction to configure MAC
 >addresses. DHCP and ethernet mode are both
 >there to support "legacy
 >operation" anyway.
 
 
 >Bjørn

Thank you all,

I try to use --set-expected-data-format=raw-ip command, but I got error message of non-existence "'/sys/class/net/wwan-6-1.ip/qmi/raw_ip'  file.
I found Bjon's patch : https://patchwork.ozlabs.org/patch/552408/ from patchwork regarding about raw-ip support in qmi_wwan driver.  
Is this patch already available in upstream kernel , or it will happen soon ? 
Well, I'll try to apply this patch to 3.14 kernel to test raw-ip mode on MC7354.  Do I need anything else to get raw-ip working other than applying Bjon patch ?  Thanks



More information about the libqmi-devel mailing list