mac80211: minstrel_ht: reduce unnecessary rate probing attempts
authorFelix Fietkau <nbd@nbd.name>
Tue, 20 Aug 2019 09:54:47 +0000 (11:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Aug 2019 09:09:20 +0000 (11:09 +0200)
commitf793c7eedd94fa41e8b969b18c4907335065a376
treef0225c1acf4d310156a2a1d6f5fd2d8ad5d67c43
parent56dd918ff06e3ee24d8067e93ed12b2a39e71394
mac80211: minstrel_ht: reduce unnecessary rate probing attempts

On hardware with static fallback tables (e.g. mt76x2), rate probing attempts
can be very expensive.
On such devices, avoid sampling rates slower than the per-group max throughput
rate, based on the assumption that the fallback table will take care of probing
lower rates within that group if the higher rates fail.

To further reduce unnecessary probing attempts, skip duplicate attempts on
rates slower than the max throughput rate.

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