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 aa0b2a192faa5b73a6e25ceff79becd46050dbbd..98b15a9a2779f450b9bfbf760c734c870c7857fe 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");