commit | 8c6c03fe230c448e5795464a9d73efb796acf3d6 | [log] [tgz] |
---|---|---|
author | Pavel Roskin <proski@gnu.org> | Tue Sep 15 22:24:30 2009 -0400 |
committer | John W. Linville <linville@tuxdriver.com> | Wed Sep 16 16:21:00 2009 -0400 |
tree | 265424ad98f303ca725a54b9b4bbd2b84ac01d9a | |
parent | de32cce132a9c96e1ba3fddc0c5a6d110af42ea4 [diff] |
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>