mt76: mt76x02: fix beacon timer drift adjustment
authorFelix Fietkau <nbd@nbd.name>
Sun, 24 Feb 2019 10:24:43 +0000 (11:24 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Feb 2019 09:28:18 +0000 (10:28 +0100)
commitb3f09304bab1a775a5fda7b4bd43798118c71567
tree6e7aef2169535f55ee463bfe6338a106aaa4b654
parenta6982fcdc3c82f0500b6bacdb471fcf406ef623a
mt76: mt76x02: fix beacon timer drift adjustment

Check the count before incrementing it to match vendor code behavior.
This defers the adjustment by one more tick, which should improve accuracy

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