usb/core/devio.c: Check for printer class specific request
authorMatthias Dellweg <2500@gmx.de>
Sun, 25 Sep 2011 12:26:25 +0000 (14:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:37 +0000 (09:42 -0800)
commit54a996b2eb057a5d375ab33425a0b2d24567219b
treefcaae2b0802d8ac7fa0aaff6a5e02ace1e9a6304
parent17195239b64caba1522ddebe5210b804bbb37d74
usb/core/devio.c: Check for printer class specific request

commit 393cbb5151ecda9f9e14e3082d048dd27a1ff9f6 upstream.

In the usb printer class specific request get_device_id the value of
wIndex is (interface << 8 | altsetting) instead of just interface.
This enables the detection of some printers with libusb.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Matthias Dellweg <2500@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c