mt76: mt7615: add .offset_tsf callback
authorRyder Lee <ryder.lee@mediatek.com>
Tue, 25 May 2021 09:22:24 +0000 (17:22 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sat, 19 Jun 2021 07:22:46 +0000 (09:22 +0200)
commitaccbcea4f301e7db084b0a393de8100bdae26ce6
tree8b560e6c0cd1abe040a54ddf371f703263a8d208
parent160731341845171fd0e5ecd39fe0a43cc9d9af36
mt76: mt7615: add .offset_tsf callback

It's much more accurate than .get_tsf + .set_tsf and switch to use
mt76_rmw to operate tsf registers.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt7615/main.c
drivers/net/wireless/mediatek/mt76/mt7615/regs.h
drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c