]> 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)
commitd4f37cf3cdf5b411e6abda66015a8244a6e8ca12
tree482bcda2b8f319a994514da4c8624709c7691f45
parent4cc7302d0ffd79b59bef0671fdf6d59a729cf168
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: e8868d601693 ("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