brcm80211: correct speed testing
authorOliver Neukum <oneukum@suse.com>
Mon, 2 May 2016 11:06:12 +0000 (13:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2016 19:49:34 +0000 (15:49 -0400)
Allow for SS+ USB

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c

index aa0b2a1..98b15a9 100644 (file)
@@ -1368,7 +1368,9 @@ brcmf_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
 
        devinfo->ifnum = desc->bInterfaceNumber;
 
-       if (usb->speed == USB_SPEED_SUPER)
+       if (usb->speed == USB_SPEED_SUPER_PLUS)
+               brcmf_dbg(USB, "Broadcom super speed plus USB WLAN interface detected\n");
+       else if (usb->speed == USB_SPEED_SUPER)
                brcmf_dbg(USB, "Broadcom super speed USB WLAN interface detected\n");
        else if (usb->speed == USB_SPEED_HIGH)
                brcmf_dbg(USB, "Broadcom high speed USB WLAN interface detected\n");