mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: add MT7927 chip ID helpers
The MediaTek MT7927 (Filogic 380) combo chip uses MT7927 WiFi silicon that is architecturally compatible with MT7925. Extend is_mt7925() to match chip ID 0x7927, and add is_mt7927() for code paths that need MT7927-specific handling. Also add 0x7927 to is_mt76_fw_txp() to match MT7925's TXP format. Tested-by: Marcin FM <[email protected]> Tested-by: Cristian-Florin Radoi <[email protected]> Tested-by: George Salukvadze <[email protected]> Tested-by: Evgeny Kapusta <[email protected]> Tested-by: Samu Toljamo <[email protected]> Tested-by: Ariel Rosenfeld <[email protected]> Tested-by: Chapuis Dario <[email protected]> Tested-by: Thibaut François <[email protected]> Tested-by: 张旭涵 <[email protected]> Reviewed-by: Sean Wang <[email protected]> Signed-off-by: Javier Tia <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
70bfd49d25
commit
fda04bb435
+7
-1
@@ -174,7 +174,12 @@ extern const struct wiphy_wowlan_support mt76_connac_wowlan_support;
|
||||
|
||||
static inline bool is_mt7925(struct mt76_dev *dev)
|
||||
{
|
||||
return mt76_chip(dev) == 0x7925;
|
||||
return mt76_chip(dev) == 0x7925 || mt76_chip(dev) == 0x7927;
|
||||
}
|
||||
|
||||
static inline bool is_mt7927(struct mt76_dev *dev)
|
||||
{
|
||||
return mt76_chip(dev) == 0x7927;
|
||||
}
|
||||
|
||||
static inline bool is_320mhz_supported(struct mt76_dev *dev)
|
||||
@@ -284,6 +289,7 @@ static inline bool is_mt76_fw_txp(struct mt76_dev *dev)
|
||||
case 0x7922:
|
||||
case 0x7902:
|
||||
case 0x7925:
|
||||
case 0x7927:
|
||||
case 0x7663:
|
||||
case 0x7622:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user