]> Pileus Git - ~andy/linux/commit
rt2x00: Fix STBC transmissions to STAs with Rx STBC > 1
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 28 Mar 2011 11:34:15 +0000 (13:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Apr 2011 20:20:03 +0000 (16:20 -0400)
commit351151e8ace033fe3b1977516b32a6c76e9a3f6d
tree1ed47898915a94933affc830c8a6c4fba2fcee7f
parent9e33a3553821418b2c4f53d09311476c55176b13
rt2x00: Fix STBC transmissions to STAs with Rx STBC > 1

For STBC transmissions rt2x00 used the number of RxSTBC streams the
destination STA indicates in its HT capabilities as STBC value in
the TXWI.

However, the legacy drivers and our own comment in rt2800.h suggest
that the STBC field in the TXWI only allows a value of 0 or 1.
The values 2 and 3 are reserved (probably for future devices).

And indeed, STBC transmissions to STAs indicating more then 1
RxSTBC stream fail when the STBC field is set to something >1.

Fix this by only setting the STBC field to 1 when STBC should be
used.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.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