]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: enable STBC only for STBC capable STAs
authorHelmut Schaa <helmut.schaa@googlemail.com>
Sat, 28 Aug 2010 09:25:44 +0000 (12:25 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 28 Aug 2010 09:25:44 +0000 (12:25 +0300)
commit36af1c7d31bdc5ba4dacacbf32d3c7585665ae2b
treedf50aff363954fa4d404f4a28e978198b9860372
parent0c703df32d47868b755a74c552c4910e97404c58
hostapd: enable STBC only for STBC capable STAs

hostapd simply used its own STBC configuration in the STA's HT caps. This
resulted in TX STBC being used for STAs not supporting RX STBC, which in
turn resulted in the STA not receiving anything.

Fix this by handling the STBC flags in the same way mac80211 does. Mask
out RX STBC if we don't support TX STBC and vice versa.

Tested only with the nl80211 driver and a STBC incapable STA.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
src/ap/ieee802_11_ht.c