<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi Aleksander,</div><div><br></div><div>Thanks your help, I have merged all patchs into my qmi_wwan source code, also merged the usbnet patch, and now I can compile qmi_wwan driver successfully based on kernel 3.8.0.</div><div><br></div><div>After implemented the new driver, I can fetch QMI command response and do QMI connection successfully via qmi-network. but always can't get IP. currently I use the libqmi version is 1.10.2, Should I need to upgrade it to the newest one?</div><div><br></div><div>below is the log:</div><div><br></div><div><div><span style="color: rgb(128, 128, 128);">tvupack ~ # qmi-network /dev/cdc-wdm3 start</span></div><div><span style="color: rgb(128, 128, 128);">state file:/tmp/qmi-network-state_cdc-wdm3</span></div><div><span style="color: rgb(128, 128, 128);">Starting network with 'qmicli -d /dev/cdc-wdm3 --wds-start-network= --client-no-release-cid'...</span></div><div><span style="color: rgb(128, 128, 128);">Saving state... (CID: 35)</span></div><div><span style="color: rgb(128, 128, 128);">Saving state... (PDH: 63042816)</span></div><div><span style="color: rgb(128, 128, 128);">Network started successfully</span></div><div><span style="color: rgb(128, 128, 128);">tvupack ~ # dhclient -v wwan2</span></div><div><span style="color: rgb(128, 128, 128);">Internet Systems Consortium DHCP Client 4.2.5-P1 Gentoo-r2</span></div><div><span style="color: rgb(128, 128, 128);">Copyright 2004-2013 Internet Systems Consortium.</span></div><div><span style="color: rgb(128, 128, 128);">All rights reserved.</span></div><div><span style="color: rgb(128, 128, 128);">For info, please visit https://www.isc.org/software/dhcp/</span></div><div><br></div><div><span style="color: rgb(128, 128, 128);">Listening on LPF/wwan2/56:a2:2c:2a:7c:b4</span></div><div><span style="color: rgb(128, 128, 128);">Sending on LPF/wwan2/56:a2:2c:2a:7c:b4</span></div><div><span style="color: rgb(128, 128, 128);">Sending on Socket/fallback</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 4</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "link0 link1" 0</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 4</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 7</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "link0 link1" 0</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 7</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 8</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "link0 link1" 0</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 8</span></div><div><br></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 12</span></div><div><br></div><div><span style="color: rgb(128, 128, 128);">Trying medium "link0 link1" 0</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 10</span></div><div><span style="color: rgb(128, 128, 128);">^C</span></div><div><span style="color: rgb(128, 128, 128);">tvupack ~ # qmi-network /dev/cdc-wdm3 stop</span></div><div><span style="color: rgb(128, 128, 128);">state file:/tmp/qmi-network-state_cdc-wdm3</span></div><div><span style="color: rgb(128, 128, 128);">Loading previous state...</span></div><div><span style="color: rgb(128, 128, 128);"> Previous CID: 35</span></div><div><span style="color: rgb(128, 128, 128);"> Previous PDH: 63042816</span></div><div><span style="color: rgb(128, 128, 128);">Stopping network with 'qmicli -d /dev/cdc-wdm3 --wds-stop-network=63042816 --client-cid=35'...</span></div><div><span style="color: rgb(128, 128, 128);">Network stopped successfully</span></div><div><span style="color: rgb(128, 128, 128);">Clearing state...</span></div><div><span style="color: rgb(128, 128, 128);">tvupack ~ # qmi-network /dev/cdc-wdm4 start</span></div><div><span style="color: rgb(128, 128, 128);">state file:/tmp/qmi-network-state_cdc-wdm4</span></div><div><span style="color: rgb(128, 128, 128);">Starting network with 'qmicli -d /dev/cdc-wdm4 --wds-start-network= --client-no-release-cid'...</span></div><div><span style="color: rgb(128, 128, 128);">Saving state... (CID: 35)</span></div><div><span style="color: rgb(128, 128, 128);">Saving state... (PDH: 63042816)</span></div><div><span style="color: rgb(128, 128, 128);">Network started successfully</span></div><div><span style="color: rgb(128, 128, 128);">tvupack ~ # dhclient -v wwan3</span></div><div><span style="color: rgb(128, 128, 128);">Internet Systems Consortium DHCP Client 4.2.5-P1 Gentoo-r2</span></div><div><span style="color: rgb(128, 128, 128);">Copyright 2004-2013 Internet Systems Consortium.</span></div><div><span style="color: rgb(128, 128, 128);">All rights reserved.</span></div><div><span style="color: rgb(128, 128, 128);">For info, please visit https://www.isc.org/software/dhcp/</span></div><div><br></div><div><span style="color: rgb(128, 128, 128);">Listening on LPF/wwan3/56:a2:2c:2a:7c:b4</span></div><div><span style="color: rgb(128, 128, 128);">Sending on LPF/wwan3/56:a2:2c:2a:7c:b4</span></div><div><span style="color: rgb(128, 128, 128);">Sending on Socket/fallback</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 2</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "link0 link1" 0</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 2</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 5</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "link0 link1" 0</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 5</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 7</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "link0 link1" 0</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 7</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 10</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "link0 link1" 0</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 10</span></div><div><span style="color: rgb(128, 128, 128);">Trying medium "-link0 -link1 -link2" 1</span></div><div><span style="color: rgb(128, 128, 128);">DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 13</span></div><div><span style="color: rgb(128, 128, 128);">No DHCPOFFERS received.</span></div><div><span style="color: rgb(128, 128, 128);">No working leases in persistent database - sleeping.</span></div></div><br><div><br></div><div>Thanks very much.</div><br><br><div style="position:relative;zoom:1">--<br><div>
<div style="FONT-SIZE: 14px">
<div align="left"><strong><font color="#0000ff"><em>Best Regards,</em></font></strong></div>
<div><strong><font color="#0000ff"><em>Dai,Lijin</em></font></strong></div></div></div><div style="clear:both"></div></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2015-12-30 17:59:26, "Aleksander Morgado" <aleksander@aleksander.es> wrote:
>On Wed, Dec 30, 2015 at 10:24 AM, dailijin <dailijin126@126.com> wrote:
>> I only need to add patch for qmi_wwan driver, not need to modify others in
>> kernel , Am I right?
>
>There's also a patch for usbnet needed at least.
>
>I personally backported all these (from davem's net-next) to my 4.2.5
>kernel, which include some unrelated to the raw-ip issue, but which
>also wanted to have:
>
>34a55d5 net: qmi_wwan: ignore bogus CDC Union descriptors
>6c73008 net: qmi_wwan: should hold RTNL while changing netdev type
>32f7adf net: qmi_wwan: support "raw IP" mode
>81e0ce7 usbnet: allow mini-drivers to consume L2 headers
>544c8f6 net: qmi_wwan: remove 1199:9070 device id
>9372514 net: qmi_wwan: MDM9x30 specific power management
>68242a5 net: qmi_wwan: add XS Stick W100-2 from 4G Systems
>b3d8cf0 USB: qmi_wwan: Add quirk for Quectel EC20 Mini PCIe module
>7091079 qmi_wwan: fix entry for HP lt4112 LTE/HSPA+ Gobi 4G Module
>0db65fc qmi_wwan: add Sierra Wireless MC74xx/EM74xx
>e704059 net: qmi_wwan: Sierra Wireless MC73xx -> Sierra Wireless MC7304/MC7354
>
>
>--
>Aleksander
>https://aleksander.es
</pre></div><br><br><span title="neteasefooter"><p> </p></span>