Fix contention window calculation in sample and minstrel code
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sat, 19 Sep 2009 04:03:53 +0000 (04:03 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sat, 19 Sep 2009 04:03:53 +0000 (04:03 +0000)
commitacbbdd0bb6b6738034d2f30ab34f650969dc5c88
tree755e7148e9c231cc437bc538cbd7713c0909b4c4
parent922778b6efc3b580175df43937d2a62869baa24b
Fix contention window calculation in sample and minstrel code

The contention window is supposed to be a power of two minus one, i.e.
15, 31, 63, 127...  Due to a wrong formula, the actual sequence was 15,
32, 66, 134...

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

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4097 0192ed92-7a03-0410-a25b-9323aeb14dbd
ath_rate/minstrel/minstrel.c
ath_rate/sample/sample.c