]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: extend AQL aggregation estimation to HE and fix unit mismatch
authorFelix Fietkau <nbd@nbd.name>
Tue, 15 Sep 2020 08:59:44 +0000 (10:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2020 09:35:53 +0000 (11:35 +0200)
commit1730e97123298516c5a559fb07ad4b3bcead63c3
treea8f1e5d6ff3c35884730a4513d36ff05d25e49f8
parent691567912a9abb8569284f6f9d7a4d2ca0ab7d82
mac80211: extend AQL aggregation estimation to HE and fix unit mismatch

The unit of the return value of ieee80211_get_rate_duration is nanoseconds, not
microseconds. Adjust the duration checks to account for that.
For higher data rates, allow larger estimated aggregation sizes, and add some
values for HE as well, which can use much larger aggregates.
Since small packets with high data rates can now lead to duration values too
small for info->tx_time_est, return a minimum of 4us.

Fixes: 93ccfd8725a3 ("mac80211: improve AQL aggregation estimation for low data rates")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20200915085945.3782-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/airtime.c