]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel_ht: fix sample time check
authorFelix Fietkau <nbd@nbd.name>
Thu, 17 Jun 2021 10:38:54 +0000 (12:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jun 2021 09:35:29 +0000 (11:35 +0200)
commitaaa4249e331b6b1e2525159e6697d1f17e7e0848
tree482bcda2b8f319a994514da4c8624709c7691f45
parent0864ddd0784a79d64b8edb85fafae930e592d52c
mac80211: minstrel_ht: fix sample time check

We need to skip sampling if the next sample time is after jiffies, not before.
This patch fixes an issue where in some cases only very little sampling (or none
at all) is performed, leading to really bad data rates

Fixes: b1ca7b822df9 ("mac80211: minstrel_ht: significantly redesign the rate probing strategy")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20210617103854.61875-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c