qmi_wwan: fix entry for HP lt4112 LTE/HSPA+ Gobi 4G Module
authorBjørn Mork <bjorn@mork.no>
Sun, 1 Nov 2015 00:34:50 +0000 (01:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Nov 2015 20:59:21 +0000 (15:59 -0500)
commit70910791731b5956171e1bfcad707766b8e18fee
treed945ef32b519d1a457ab6fc4169200b1c43f9c45
parent44f49dd8b5a606870a1f21101522a0f9c4414784
qmi_wwan: fix entry for HP lt4112 LTE/HSPA+ Gobi 4G Module

The lt4112 is a HP branded Huawei me906e modem. Like other Huawei
modems, it does not have a fixed interface to function mapping.
Instead it uses a Huawei specific scheme: functions are mapped by
subclass and protocol.

However, the HP vendor ID is used for modems from many different
manufacturers using different schemes, so we cannot apply a generic
vendor rule like we do for the Huawei vendor ID.

Replace the previous lt4112 entry pointing to an arbitrary interface
number with a device specific subclass + protocol match.

Reported-and-tested-by: Muri Nicanor <muri+libqmi@immerda.ch>
Tested-by: Martin Hauke <mardnh@gmx.de>
Fixes: bb2bdeb83fb1 ("qmi_wwan: Add support for HP lt4112 LTE/HSPA+ Gobi 4G Modem")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c