]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mt76: mt7921u: add MT7902 USB support
authorSean Wang <sean.wang@mediatek.com>
Sat, 25 Apr 2026 16:09:30 +0000 (11:09 -0500)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 Jun 2026 10:15:22 +0000 (10:15 +0000)
Add the 0e8d:7902 USB ID and select the MT7902 WM firmware.  Use the
same USB queue mapping as mt7921/mt7925 so MT7902U can bind and probe
through mt7921u driver.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20260425160930.739237-1-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/usb.c
drivers/net/wireless/mediatek/mt76/usb.c

index 9bfc234f306f34c9eb72234b8fc422a6a9eda426..4105c1baec1ec00778504e133ef7e9b8a973a180 100644 (file)
@@ -13,6 +13,8 @@
 #include "../mt76_connac2_mac.h"
 
 static const struct usb_device_id mt7921u_device_table[] = {
+       { USB_DEVICE_AND_INTERFACE_INFO(0x0e8d, 0x7902, 0xff, 0xff, 0xff),
+               .driver_info = (kernel_ulong_t)MT7902_FIRMWARE_WM },
        { USB_DEVICE_AND_INTERFACE_INFO(0x0e8d, 0x7961, 0xff, 0xff, 0xff),
                .driver_info = (kernel_ulong_t)MT7921_FIRMWARE_WM },
        /* Comfast CF-952AX */
index 9bd61c9e94ed941c1e508b55b377ea20b384d0f5..d9638a9b749b6695f1526813970e401ddc5493e8 100644 (file)
@@ -926,6 +926,7 @@ mt76u_ac_to_hwq(struct mt76_dev *dev, struct mt76_queue *q, u8 qid)
                break;
        }
        case 0x6639:
+       case 0x7902:
        case 0x7961:
        case 0x7925:
                q->hw_idx = mt76_ac_to_hwq(ac);