Ticket #12051: modeswitch.patch

File modeswitch.patch, 1.6 KB (added by haiqu, 10 years ago)
  • src/add-ons/kernel/drivers/common/usb_modeswitch.cpp

    diff --git a/src/add-ons/kernel/drivers/common/usb_modeswitch.cpp b/src/add-ons/kernel/drivers/common/usb_modeswitch.cpp
    index f1e3c85..07cb93b 100644
    a b enum msgType {  
    3636    MSG_HUAWEI_1 = 0,
    3737    MSG_HUAWEI_2,
    3838    MSG_HUAWEI_3,
     39    MSG_HUAWEI_4,
    3940    MSG_NOKIA_1,
    4041    MSG_OLIVETTI_1,
    4142    MSG_OLIVETTI_2,
    unsigned char kDevicesMsg[][31] = {  
    6768        0x06, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
    6869        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    6970    },
     71    {   /* MSG_HUAWEI_4 */
     72        0x55, 0x53, 0x42, 0x43, 0x12, 0x34, 0x56, 0x78,
     73        0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x0a, 0x11,
     74        0x06, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
     75        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
     76    },
    7077    {   /* MSG_NOKIA_1 */
    7178        0x55, 0x53, 0x42, 0x43, 0x12, 0x34, 0x56, 0x78,
    7279        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x1b,
    unsigned char kDevicesMsg[][31] = {  
    122129#define NOKIA_VENDOR    0x0421
    123130#define NOVATEL_VENDOR  0x1410
    124131#define ZYDAS_VENDOR    0x0ace
    125 #define ZTE_VENDOR  0x19d2
     132#define ZTE_VENDOR      0x19d2
    126133#define OLIVETTI_VENDOR 0x0b3c
    127134#define OPTION_VENDOR   0x0af0
    128135#define ATHEROS_VENDOR  0x0cf3
    static const struct {  
    160167    {{ 0, 0, 0, HUAWEI_VENDOR, 0x1030}, MSG_HUAWEI_2},
    161168    {{ 0, 0, 0, HUAWEI_VENDOR, 0x1031}, MSG_HUAWEI_2},
    162169    {{ 0, 0, 0, HUAWEI_VENDOR, 0x1f01}, MSG_HUAWEI_3},
     170    {{ 0, 0, 0, HUAWEI_VENDOR, 0x1f02}, MSG_HUAWEI_3},
     171    {{ 0, 0, 0, HUAWEI_VENDOR, 0x1f03}, MSG_HUAWEI_4},
    163172    {{ 0, 0, 0, NOKIA_VENDOR, 0x060c}, MSG_NOKIA_1},
    164173    {{ 0, 0, 0, NOKIA_VENDOR, 0x0610}, MSG_NOKIA_1},
    165174    {{ 0, 0, 0, NOKIA_VENDOR, 0x061d}, MSG_NOKIA_1},