mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 10:34:22 -04:00
mt76: mt7615: add missing register init for dual-wiphy support
Initialize low-power beacon mode setting Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
|
||||
static void mt7615_phy_init(struct mt7615_dev *dev)
|
||||
{
|
||||
/* disable band 0 rf low power beacon mode */
|
||||
mt76_rmw(dev, MT_WF_PHY_WF2_RFCTRL0, MT_WF_PHY_WF2_RFCTRL0_LPBCN_EN,
|
||||
MT_WF_PHY_WF2_RFCTRL0_LPBCN_EN);
|
||||
/* disable rf low power beacon mode */
|
||||
mt76_set(dev, MT_WF_PHY_WF2_RFCTRL0(0), MT_WF_PHY_WF2_RFCTRL0_LPBCN_EN);
|
||||
mt76_set(dev, MT_WF_PHY_WF2_RFCTRL0(1), MT_WF_PHY_WF2_RFCTRL0_LPBCN_EN);
|
||||
}
|
||||
|
||||
static void mt7615_mac_init(struct mt7615_dev *dev)
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
#define MT_WF_PHY_BASE 0x10000
|
||||
#define MT_WF_PHY(ofs) (MT_WF_PHY_BASE + (ofs))
|
||||
|
||||
#define MT_WF_PHY_WF2_RFCTRL0 MT_WF_PHY(0x1900)
|
||||
#define MT_WF_PHY_WF2_RFCTRL0(n) MT_WF_PHY(0x1900 + ((n) * 0x400))
|
||||
#define MT_WF_PHY_WF2_RFCTRL0_LPBCN_EN BIT(9)
|
||||
|
||||
#define MT_WF_PHY_R0_PHYMUX_5(_phy) MT_WF_PHY(0x0614 + ((_phy) << 9))
|
||||
|
||||
Reference in New Issue
Block a user