[haiku-bugs] Re: [Haiku] #12051: usb_modeswitch.cpp missing several devices

  • From: "humdinger" <trac@xxxxxxxxxxxx>
  • Date: Sat, 02 May 2015 16:27:18 -0000

#12051: usb_modeswitch.cpp missing several devices
---------------------------+----------------------------
Reporter: haiqu | Owner: nobody
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: Add-Ons | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
---------------------------+----------------------------

Old description:

The following devices need to be added to src/add-
ons/kernel/drivers/common/usb_modeswitch.cpp

Huawei E5377 USB modem/router
Huawei HWD12 LTE USB modem stick

The required code follows:

{ /* MSG_HUAWEI_4 */
0x55, 0x53, 0x42, 0x43, 0x12, 0x34, 0x56, 0x78,
0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x0a, 0x11,
0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
},

...

{{ 0, 0, 0, HUAWEI_VENDOR, 0x1f02}, MSG_HUAWEI_3}, // E5377
{{ 0, 0, 0, HUAWEI_VENDOR, 0x1f03}, MSG_HUAWEI_4}, // HWD12 LTE

I also note that this file object isn't being created, but I'm fairly
unfamiliar with Jam so can't debug it at this stage. Consequently this
functionality is missing from the build.

New description:

The following devices need to be added to src/add-
ons/kernel/drivers/common/usb_modeswitch.cpp

Huawei E5377 USB modem/router
Huawei HWD12 LTE USB modem stick

The required code follows:
{{{
{ /* MSG_HUAWEI_4 */
0x55, 0x53, 0x42, 0x43, 0x12, 0x34, 0x56, 0x78,
0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x0a, 0x11,
0x06, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
},

...

{{ 0, 0, 0, HUAWEI_VENDOR, 0x1f02}, MSG_HUAWEI_3}, // E5377
{{ 0, 0, 0, HUAWEI_VENDOR, 0x1f03}, MSG_HUAWEI_4}, // HWD12 LTE
}}}
I also note that this file object isn't being created, but I'm fairly
unfamiliar with Jam so can't debug it at this stage. Consequently this
functionality is missing from the build.

--

Comment (by humdinger):

I edited the ticket description. You can use [https://dev.haiku-
os.org/wiki/WikiFormatting#PreformattedText Preformatted Text] for code
snippets.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12051#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: