lkml.org 
[lkml]   [2012]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 08/27] USB: option: blacklist network interface on Huawei E173
    Date
    3.7-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Bjørn Mork <bjorn@mork.no>

    commit f36446cf9bbebaa03a80d95cfeeafbaf68218249 upstream.

    The Huawei E173 will normally appear as 12d1:1436 in Linux. But
    the modem has another mode with different device ID and a slightly
    different set of descriptors. This is the mode used by Windows like
    this:

    3Modem: USB\VID_12D1&PID_140C&MI_00\6&3A1D2012&0&0000
    Networkcard: USB\VID_12D1&PID_140C&MI_01\6&3A1D2012&0&0001
    Appli.Inter: USB\VID_12D1&PID_140C&MI_02\6&3A1D2012&0&0002
    PC UI Inter: USB\VID_12D1&PID_140C&MI_03\6&3A1D2012&0&0003

    All interfaces have the same ff/ff/ff class codes in this mode.
    Blacklisting the network interface to allow it to be picked up by
    the network driver.

    Reported-by: Thomas Schäfer <tschaefer@t-online.de>
    Signed-off-by: Bjørn Mork <bjorn@mork.no>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/usb/serial/option.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/usb/serial/option.c
    +++ b/drivers/usb/serial/option.c
    @@ -81,6 +81,7 @@ static void option_instat_callback(struc
    #define OPTION_PRODUCT_GTM380_MODEM 0x7201

    #define HUAWEI_VENDOR_ID 0x12D1
    +#define HUAWEI_PRODUCT_E173 0x140C
    #define HUAWEI_PRODUCT_K4505 0x1464
    #define HUAWEI_PRODUCT_K3765 0x1465
    #define HUAWEI_PRODUCT_K4605 0x14C6
    @@ -553,6 +554,8 @@ static const struct usb_device_id option
    { USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GLX) },
    { USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GKE) },
    { USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GLE) },
    + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E173, 0xff, 0xff, 0xff),
    + .driver_info = (kernel_ulong_t) &net_intf1_blacklist },
    { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4505, 0xff, 0xff, 0xff),
    .driver_info = (kernel_ulong_t) &huawei_cdc12_blacklist },
    { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3765, 0xff, 0xff, 0xff),

    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2012-12-15 00:41    [W:3.318 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site