mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: set secondary beacon time offsets
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -176,4 +176,9 @@ void mt7603_beacon_set_timer(struct mt7603_dev *dev, int idx, int intval)
|
||||
MT_WF_ARB_BCN_START_BSSn(0) |
|
||||
((dev->beacon_mask >> 1) * MT_WF_ARB_BCN_START_BSS0n(1)));
|
||||
mt7603_irq_enable(dev, MT_INT_MAC_IRQ3);
|
||||
|
||||
if (dev->beacon_mask & ~BIT(0))
|
||||
mt76_set(dev, MT_LPON_SBTOR(0), MT_LPON_SBTOR_SUB_BSS_EN);
|
||||
else
|
||||
mt76_clear(dev, MT_LPON_SBTOR(0), MT_LPON_SBTOR_SUB_BSS_EN);
|
||||
}
|
||||
|
||||
@@ -249,6 +249,11 @@ mt7603_mac_init(struct mt7603_dev *dev)
|
||||
mt76_set(dev, MT_WTBL_RMVTCR, MT_WTBL_RMVTCR_RX_MV_MODE);
|
||||
|
||||
mt76_clear(dev, MT_SEC_SCR, MT_SEC_SCR_MASK_ORDER);
|
||||
|
||||
/* Set secondary beacon time offsets */
|
||||
for (i = 0; i <= 4; i++)
|
||||
mt76_rmw_field(dev, MT_LPON_SBTOR(i), MT_LPON_SBTOR_TIME_OFFSET,
|
||||
(i + 1) * (20 + 4096));
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
@@ -439,6 +439,10 @@ enum {
|
||||
|
||||
#define MT_TBTT_TIMER_CFG MT_LPON(0x05c)
|
||||
|
||||
#define MT_LPON_SBTOR(n) MT_LPON(0x0a0)
|
||||
#define MT_LPON_SBTOR_SUB_BSS_EN BIT(29)
|
||||
#define MT_LPON_SBTOR_TIME_OFFSET GENMASK(19, 0)
|
||||
|
||||
#define MT_INT_WAKEUP_BASE 0x24400
|
||||
#define MT_INT_WAKEUP(n) (MT_INT_WAKEUP_BASE + (n))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user