[PATCH 1/4] usbutils: Fix Wireless USB descriptor fetching.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Wireless USB standard says all devices must have a bcdUSB of 0x250.
USB 3.0 devices must have a bcdUSB of 0x300, so don't try to dump wireless
descriptors for USB 3.0 devices.  (Note that do_wireless() immediately
returns, so this patch doesn't have any behavior change right now.)

Signed-off-by: Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx>
---
 lsusb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lsusb.c b/lsusb.c
index 61d362f..97590b5 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -3450,7 +3450,7 @@ static void dumpdev(struct usb_device *dev)
 			"will be missing\n");
 
 	dump_device(udev, &dev->descriptor);
-	if (dev->descriptor.bcdUSB >= 0x0250)
+	if (dev->descriptor.bcdUSB == 0x0250)
 		wireless = do_wireless(udev);
 	if (dev->config) {
 		otg = do_otg(&dev->config[0]) || otg;
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux