]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit972b66b86f85f4e8201db454f4c3e9d990cf9836
treede688424d95887b2c5cc6ea87ca3bbed959aee9d
parent80df9be67c44cb636bbc92caeddad8caf334c53c
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