]> Git Repo - linux.git/commit
rc80211_minstrel: fix contention window calculation
authorPavel Roskin <[email protected]>
Wed, 16 Sep 2009 02:24:30 +0000 (22:24 -0400)
committerJohn W. Linville <[email protected]>
Wed, 16 Sep 2009 20:21:00 +0000 (16:21 -0400)
commit8c6c03fe230c448e5795464a9d73efb796acf3d6
tree265424ad98f303ca725a54b9b4bbd2b84ac01d9a
parentde32cce132a9c96e1ba3fddc0c5a6d110af42ea4
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 <[email protected]>

Signed-off-by: Pavel Roskin <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
net/mac80211/rc80211_minstrel.c
This page took 0.045939 seconds and 4 git commands to generate.