mac80211: minstrel: remove divisions in tx status path
authorFelix Fietkau <nbd@nbd.name>
Tue, 8 Oct 2019 17:11:37 +0000 (19:11 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Oct 2019 08:31:15 +0000 (10:31 +0200)
commit8f2f495ca93e01b383dc0944689e7595027ca6ec
tree15a2fa7542b78ec447508c40a9c79633199ac8d9
parent2fd351a8772d6eae4800925b17228c9f2d276193
mac80211: minstrel: remove divisions in tx status path

Use a slightly different threshold for downgrading spatial streams to
make it easier to calculate without divisions.
Slightly reduces CPU overhead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20191008171139.96476-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel.c
net/mac80211/rc80211_minstrel_ht.c