]> git.itanic.dy.fi Git - linux-stable/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)
commit1236af327af476731aa548dfcbbefb1a3ec6726a
tree482bcda2b8f319a994514da4c8624709c7691f45
parent1c200f832e14420fa770193f9871f4ce2df00d07
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: 80d55154b2f8 ("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