]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix SM PS check
authorHelmut Schaa <helmut.schaa@googlemail.com>
Sat, 2 Oct 2010 09:28:02 +0000 (11:28 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Oct 2010 17:35:26 +0000 (13:35 -0400)
commit4030a5f914ccc8012f2d276553b0138e6a677459
tree4e5bab21d44445c2bf59e8cdc387bb24886cfffe
parent7aadbf63c3dcce4971f5227a0b7cbe081c900774
rt2x00: Fix SM PS check

Fix a check for dynamic SM PS mode in the STAs HT caps. Since a
value of 3 means "SM PS disabled" the previous check assumed in
that case that "dynamic SM PS" was enabled and as such prefixed
every MCS>7 frame with a unnecessary RTS/CTS exchange. Also,
the bit shift was done in the wrong direction.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00ht.c