diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-02-03 16:41:22 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-02-18 21:54:33 +0300 |
commit | ccdaf7b4f22f50dcd1e0af39f3712677195b8351 (patch) | |
tree | 3a5a1722d7f3d5546f0ddd4f4d1c870d58d9b99e /drivers/net/wireless/mediatek/mt76/mt76x02.h | |
parent | c15b7cef2af8ea2dfac61af5f4f2b27aaed8d7e6 (diff) | |
download | linux-ccdaf7b4f22f50dcd1e0af39f3712677195b8351.tar.xz |
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>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02.h b/drivers/net/wireless/mediatek/mt76/mt76x02.h index 7e405297028f..3464b4ca2ea8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x02.h @@ -117,6 +117,7 @@ struct mt76x02_dev { bool ed_monitor; u8 ed_trigger; u8 ed_silent; + ktime_t ed_time; }; extern struct ieee80211_rate mt76x02_rates[12]; |