mt76: measure the time between mt76x02_edcca_check runs
authorFelix Fietkau <nbd@nbd.name>
Sun, 3 Feb 2019 13:41:22 +0000 (14:41 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 18 Feb 2019 18:54:33 +0000 (19:54 +0100)
commitccdaf7b4f22f50dcd1e0af39f3712677195b8351
tree3a5a1722d7f3d5546f0ddd4f4d1c870d58d9b99e
parentc15b7cef2af8ea2dfac61af5f4f2b27aaed8d7e6
mt76: measure the time between mt76x02_edcca_check runs

Based on system load and time needed by other calibration runs, the time
between dev->mac_work runs can vary quite a bit.
Calculate busy time based on the actual time difference in order to avoid
potentially over-estimating busy time, which could lead to unnecessary tx
blocking.

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