]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't sanitize invalid rates
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 16 Oct 2010 16:49:15 +0000 (18:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Oct 2010 18:43:13 +0000 (14:43 -0400)
commit37e7c434379c346d1aac3e6bcdebe189a9ea841c
treeb6790e3f195491139d2af7642ef3f4f51408ca10
parent9d291a365fdb184cf0ced76079fe08e7587b09fa
mac80211: don't sanitize invalid rates

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>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rate.c