]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel: fix sampling/reporting of CCK rates in HT mode
authorFelix Fietkau <nbd@nbd.name>
Sat, 6 Oct 2018 17:35:05 +0000 (19:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 11 Oct 2018 14:01:03 +0000 (16:01 +0200)
commite753a8f4a7e0c7a4c99ad9a5299bc51042b8431b
treede688424d95887b2c5cc6ea87ca3bbed959aee9d
parenta491e63bae1f191ec6770fdfe08315e97c5a2a56
mac80211: minstrel: fix sampling/reporting of CCK rates in HT mode

Long/short preamble selection cannot be sampled separately, since it
depends on the BSS state. Because of that, sampling attempts to
currently not used preamble modes are not counted in the statistics,
which leads to CCK rates being sampled too often.

Fix statistics accounting for long/short preamble by increasing the
index where necessary.
Fix excessive CCK rate sampling by dropping unsupported sample attempts.

This improves throughput on 2.4 GHz channels

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c