summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Gomzyakov <nicerok11@gmail.com>2026-05-10 15:29:10 +0500
committerFelix Fietkau <nbd@nbd.name>2026-07-31 12:25:36 +0000
commit574bd79955d166c00c2b1531fed591ee70b6ba04 (patch)
tree6ac68b008d07d51e9658a707e7c43a2b4abf1f99
parent4a0bd262df757b25fc4e2a53c947317c119ced4e (diff)
downloadlinux-next-574bd79955d166c00c2b1531fed591ee70b6ba04.tar.gz
linux-next-574bd79955d166c00c2b1531fed591ee70b6ba04.zip
wifi: mt76: connac: add MT7991A (0x7991) to is_mt7996()
The MT7991A chipset uses PCI device ID 0x7991 (MT7996_DEVICE_ID_2), but is_mt7996() only checks for 0x7990. This causes MT7991A devices to use incorrect chip-specific settings, such as: - MSDU_CNT_V2 instead of MSDU_CNT in TX descriptors - Wrong WTBL BMC size (32 instead of 64) - Incorrect prefetch depth for MCU queues Fixes: 7014fe535860 ("wifi: mt76: mt7996: add macros for pci device ids") Signed-off-by: Dmitry Gomzyakov <nicerok11@gmail.com> Link: https://patch.msgid.link/20260510102911.1883849-2-kyoto1337@protonmail.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76_connac.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac.h b/drivers/net/wireless/mediatek/mt76/mt76_connac.h
index 2aa6078993e9..d15cce296c1e 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76_connac.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76_connac.h
@@ -245,7 +245,8 @@ static inline bool is_mt798x(struct mt76_dev *dev)
static inline bool is_mt7996(struct mt76_dev *dev)
{
- return mt76_chip(dev) == 0x7990;
+ u16 chip = mt76_chip(dev);
+ return chip == 0x7990 || chip == 0x7991;
}
static inline bool is_mt7992(struct mt76_dev *dev)