mt76: mt76x02: only reset beacon drift counter when enabling beacons
authorFelix Fietkau <nbd@nbd.name>
Sun, 24 Feb 2019 12:03:18 +0000 (13:03 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Feb 2019 09:28:19 +0000 (10:28 +0100)
commit90f42f2d76d0ed29553cf0167bc8e86c22e5a214
tree6e287ce734e37ba2d1fc32b48f9cd78c0723d238
parented55c9b9c13e3c30ed644a6ace02fd9fd6b70a45
mt76: mt76x02: only reset beacon drift counter when enabling beacons

When the timer is already running, there is no need to reset the counter,
because the drift will remain the same.

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