]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel_ht: do not sample unsupported rates
authorKarl Beldan <karl.beldan@rivierawaves.com>
Mon, 11 Nov 2013 12:10:49 +0000 (13:10 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 19:52:21 +0000 (20:52 +0100)
commit4c5e8e2b48b775db87b20edd1739f7ac29c9e007
tree3813e32da22d2d4d830c4afb9b43a6515b1c97ee
parent755a2a734bb8b70be2dc855e7ea8b66b1733f1e8
mac80211: minstrel_ht: do not sample unsupported rates

ATM minstrel_ht does not check whether a sampling rate is supported.
Unsupported rates attempts can trigger when there are holes in bitfields
of supported MCSes belonging to the same group (e.g many devices are
MCS32 capable without MCS33->39 capable, also we systematically have a
hole for CCK rates).
Drop any attempts to sample unsupported rates, as suggested by Felix.

This is not a problem in minstrel which fills a per STA sample table
with only supported rates (though only at init).

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c