]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: don't sanitize invalid rates
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 16 Oct 2010 16:49:15 +0000 (18:49 +0200)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:02 +0000 (23:40 +0100)
commita171652459e33373b16fe9d48e200aaa359010b8
treeec708680ceb4b63dafd89b2a61f791974c5c4d10
parent1416ef9a67f443b26bb9b9498ca14351616eedac
mac80211: don't sanitize invalid rates

commit 5f4e6b2d3c74c1adda1cbfd9d9d30da22c7484fc upstream.

I found this bug while poking around with a pure-gn AP.

Commit:
cfg80211/mac80211: Use more generic bitrate mask for rate control

Added some sanity checks to ensure that each tx rate index
is included in the configured mask and it would change any
rate indexes if it wasn't.

But, the current implementation doesn't take into account
that the invalid rate index "-1" has a special meaning
(= no further attempts) and it should not be "changed".

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/mac80211/rate.c