]> 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)
commitf42f2c689bd288e1c0945ed988771437f6337a82
treede688424d95887b2c5cc6ea87ca3bbed959aee9d
parenteedc24161c3ecd2e695a0d31804b2d1e2d2e23f1
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