mt76: mt76x02: fix TSF sync mode
authorFelix Fietkau <nbd@nbd.name>
Sat, 23 Feb 2019 19:05:02 +0000 (20:05 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Feb 2019 09:28:18 +0000 (10:28 +0100)
MT_BEACON_TIME_CFG_SYNC_MODE needs to be set for AP mode, according to the
documentation. For other modes it should be irrelevant in this case.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_util.c

index 11b5f664f5b1f3bc12eb9c2ec927170ad0de281f..7b9b1956111ba79aefd4b7b6212a768b02e7b320 100644 (file)
@@ -679,9 +679,9 @@ void mt76x02_init_beacon_config(struct mt76x02_dev *dev)
        }
 
        mt76_clear(dev, MT_BEACON_TIME_CFG, (MT_BEACON_TIME_CFG_TIMER_EN |
-                                            MT_BEACON_TIME_CFG_SYNC_MODE |
                                             MT_BEACON_TIME_CFG_TBTT_EN |
                                             MT_BEACON_TIME_CFG_BEACON_TX));
+       mt76_set(dev, MT_BEACON_TIME_CFG, MT_BEACON_TIME_CFG_SYNC_MODE);
        mt76_wr(dev, MT_BCN_BYPASS_MASK, 0xffff);
 
        for (i = 0; i < 8; i++)