]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mt76: mt76x02u: Add support for newer versions of the XBox One wifi adapter
authorMatthew Garrett <matthewgarrett@google.com>
Wed, 18 Mar 2020 23:07:48 +0000 (16:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Jun 2020 11:16:48 +0000 (13:16 +0200)
commit b2934279c3e9719145ff4090d4ab951e340df17e upstream.

The current version has a new USB ID and reports as an 0x7632 device.
Adding the IDs results in it working out of the box.

Signed-off-by: Matthew Garrett <mjg59@google.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt76x02.h
drivers/net/wireless/mediatek/mt76/mt76x2/usb.c

index 0ca0bbfe8769e38e7fad985c35941beccb752954..c7c601f0348a981b037106ffb19390b8353aafd7 100644 (file)
@@ -211,6 +211,7 @@ static inline bool is_mt76x0(struct mt76x02_dev *dev)
 static inline bool is_mt76x2(struct mt76x02_dev *dev)
 {
        return mt76_chip(&dev->mt76) == 0x7612 ||
+              mt76_chip(&dev->mt76) == 0x7632 ||
               mt76_chip(&dev->mt76) == 0x7662 ||
               mt76_chip(&dev->mt76) == 0x7602;
 }
index b64ad816cc25bbbec4413b1d8d8a384253dbc200..a6a14621e8a938aaf67eb14f9783de246f1ea9c6 100644 (file)
@@ -18,6 +18,7 @@ static const struct usb_device_id mt76x2u_device_table[] = {
        { USB_DEVICE(0x7392, 0xb711) }, /* Edimax EW 7722 UAC */
        { USB_DEVICE(0x0846, 0x9053) }, /* Netgear A6210 */
        { USB_DEVICE(0x045e, 0x02e6) }, /* XBox One Wireless Adapter */
+       { USB_DEVICE(0x045e, 0x02fe) }, /* XBox One Wireless Adapter */
        { },
 };