rc80211_minstrel: fix contention window calculation
commit909a203566a75d26c65370d7dd933fa513d47990
authorPavel Roskin <proski@gnu.org>
Wed, 16 Sep 2009 02:24:30 +0000 (15 22:24 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Sep 2009 15:35:42 +0000 (23 11:35 -0400)
treec77fc25740fa2c4061911b9551b3031f51c2c13e
parent71702bc13efd3238e02197780d6e62c51c196a9d
rc80211_minstrel: fix contention window calculation

The contention window is supposed to be a power of two minus one, i.e.
15, 31, 63, 127...  minstrel_rate_init() forgets to subtract 1, so the
sequence becomes 15, 32, 66, 134...

Bug reported by Dan Halperin <dhalperi@cs.washington.edu>

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rc80211_minstrel.c