<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi Bjorn,</div><div><br></div><div>It seems that the MC7430 hardware  is different with MC7304, so the work mode is also different, we should modify qmi_wwan driver to support raw-ip for MC7430 modem dialing, Right?</div><div><br></div><div>I have merged the three patchs, but compile qmi_wwan always fail based on kernel 3.8, the error as below:</div><div><div><span style="background-color: rgb(192, 192, 192);">tvupack qmi_wwan # make</span></div><div><span style="background-color: rgb(192, 192, 192);">make -C /lib/modules/3.8.0-23-generic/build M=/data/danner/qmi/qmi/driver/qmi_wwan modules</span></div><div><span style="background-color: rgb(192, 192, 192);">make[1]: Entering directory `/data/danner/current_kernel_source/linux-source-3.8.0'</span></div><div><span style="background-color: rgb(192, 192, 192);">  CC [M]  /data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.o</span></div><div><span style="background-color: rgb(192, 192, 192);">/data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:138:8: warning: type defaults to ‘int’ in declaration of ‘DEVICE_ATTR_RW’ [-Wimplicit-int]</span></div><div><span style="background-color: rgb(192, 192, 192);">/data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:138:1: warning: parameter names (without types) in function declaration [enabled by default]</span></div><div><span style="background-color: rgb(192, 192, 192);">/data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:141:6</span><span style="color: rgb(255, 0, 0); background-color: rgb(192, 192, 192);">: error: ‘dev_attr_raw_ip’ undeclared here (not in a function)</span></div><div><span style="background-color: rgb(192, 192, 192);">/data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:83:16: warning: ‘raw_ip_show’ defined but not used [-Wunused-function]</span></div><div><span style="background-color: rgb(192, 192, 192);">/data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:91:16: warning: ‘raw_ip_store’ defined but not used [-Wunused-function]</span></div><div><span style="background-color: rgb(192, 192, 192);">/data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:138:8: warning: ‘DEVICE_ATTR_RW’ declared ‘static’ but never defined [-Wunused-function]</span></div><div><span style="background-color: rgb(192, 192, 192);">make[2]: *** [/data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.o] Error 1</span></div><div><span style="background-color: rgb(192, 192, 192);">make[1]: *** [_module_/data/danner/qmi/qmi/driver/qmi_wwan] Error 2</span></div><div><span style="background-color: rgb(192, 192, 192);">make[1]: Leaving directory `/data/danner/current_kernel_source/linux-source-3.8.0'</span></div><div><span style="background-color: rgb(192, 192, 192);">make: *** [all] Error 2</span></div></div><div><br></div><div>I notice the structure "dev_attr_raw_ip" actually is not in the three patchs,  which file define it?</div><div><br></div><div>Thanks</div><br><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-24 18:22:43, "Bjørn Mork" <bjorn@mork.no> wrote:
>dailijin <dailijin126@126.com> writes:
>
>> Hi All,
>>
>>
>> Refer to https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/drivers/net/usb/qmi_wwan.c?id=93725149794d3d418cf1eddcae60c7b536c5faa1 , I have added the patch into my qmi_wwan driver, and now I can get QMI response now, and also do QMI connection successfully  via command "qmi-network  /dev/cdc-wdm14 start", but can not fetch IP via dhclient now. I check the data format which is 'raw-ip', and can't be changed via qmi command, this maybe why I can't get IP. because I remember MC7304 and MC7354  can work before only after I set '802-3' as data format for them. 
>>
>>
>> Is there anyone have made MC7430 work?  I will appreciate you very much if you can give me some suggestions?
>
>Did you patch the driver for raw-ip support as well?  You'll need at
>least these 3 patches:
>
> https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/drivers/net/usb/usbnet.c?id=81e0ce79f2919dbd5f025894d29aa806af8695c7
> https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/drivers/net/usb/qmi_wwan.c?id=6c730080e663b1d629f8aa89348291fbcdc46cd9
> https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/drivers/net/usb/qmi_wwan.c?id=32f7adf633b9f99ad5089901bc7ebff57704aaa9
>
>Switch the netdev to raw-ip by
>
> echo Y >/sys/class/net/wwan0/qmi/raw_ip
>
>etc.
>
>If you want to do DHCP, then your choices of DHCP clients are limited at
>the moment.  But I found that the busybox DHCP client (udhcpc) works
>fine without any changes (although it still claims the interface is
>"ethernet").
>
>And finally, if you want kernel SLAAC, you'll either need to set a link
>local address manually, configure the interface for "stable-privacy"
>addresses, or get this patch for fully automatic addressing:
>
> https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/net/ipv6/addrconf.c?id=cc9da6cc4f56e05cc9e591459fe0192727ff58b3
>
>
>
>Bjørn
>_______________________________________________
>libqmi-devel mailing list
>libqmi-devel@lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/libqmi-devel
</pre></div><br><br><span title="neteasefooter"><p> </p></span>