Skip to content

Commit 67aa274

Browse files
LorenzoBianconinbd168
authored andcommitted
mt76: mt7921: rely on mt76_connac_mcu common library
Rely on mt76_connac_mcu common library and remove duplicated code Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
1 parent ffa1bf9 commit 67aa274

File tree

10 files changed

+411
-1811
lines changed

10 files changed

+411
-1811
lines changed

drivers/net/wireless/mediatek/mt76/mt76_connac.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ struct mt76_connac_pm {
5959

6060
extern const struct wiphy_wowlan_support mt76_connac_wowlan_support;
6161

62+
static inline bool is_mt7921(struct mt76_dev *dev)
63+
{
64+
return mt76_chip(dev) == 0x7961;
65+
}
66+
6267
int mt76_connac_pm_wake(struct mt76_phy *phy, struct mt76_connac_pm *pm);
6368
void mt76_connac_power_save_sched(struct mt76_phy *phy,
6469
struct mt76_connac_pm *pm);

0 commit comments

Comments
 (0)