Huawei E3276 problem

Bjørn Mork bjorn at mork.no
Fri Nov 9 05:26:24 PST 2012


Tommy Cheng <tommy7765 at yahoo.com> writes:

> Yes, please feel free to add me as Reported-by.
>
> I am using option driver.  option driver will bind to interface 0 by issuing
> "echo 12d1 1506 > /sys/bus/usb-serial/drivers/option1/new_id"
>
> T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=12d1 ProdID=1506 Rev= 1.02
> S:  Manufacturer=HUAWEI Technology
> S:  Product=HUAWEI Mobile
> C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=500mA
> I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=12 Driver=option
> E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

Thanks.  I just verified that this combination is one of the many that
were added to the option driver by Huawei recently.  So it should be
supported by that driver out of the box, without any need to add the
dynamic id.

The Windows driver describes this particular protocol as
  "HUAWEI Mobile Connect - PC UI Interface"
which I believe supports the theory that it is only a management
interface and not suitable for PPP.


> I:  If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=16 Driver=cdc_ncm
> E:  Ad=82(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
> I:* If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=cdc_ncm
> E:  Ad=82(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
> E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
> I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=
> E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> I:* If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=
> E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
>
> Yes, the firmware support DHCP.  I can just use dhcp client (e.g. dhclient)
> to get the ip address from Huawei E3276.

Great.  I'll send the attached patch upstream,  but if any of you want
to test it first then please do. I verified that it applies cleanly to
both current mainline and v3.6.6, as well as to net-next.



Bjørn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-net-cdc_ncm-add-Huawei-devices.patch
Type: text/x-diff
Size: 1739 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20121109/5c66d359/attachment.patch>


More information about the libqmi-devel mailing list