[rt2x00-users] [RFC] rt2x00: rt2800: disable TX STBC for 1 stream devices

Gertjan van Wingerde gwingerde at gmail.com
Fri May 28 22:25:14 AEST 2010


On 05/28/10 13:37, Helmut Schaa wrote:
> Disable TX STBC for 1 stream devices as a minimum of 2 streams is needed for TX STBC.
> 
> Signed-off-by: Helmut Schaa <helmut.schaa at googlemail.com>

Acked-by: Gertjan van Wingerde <gwingerde at gmail.com>

> ---
>  drivers/net/wireless/rt2x00/rt2800lib.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
> index 87e7010..690c1b0 100644
> --- a/drivers/net/wireless/rt2x00/rt2800lib.c
> +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
> @@ -2537,8 +2537,11 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
>  	    IEEE80211_HT_CAP_GRN_FLD |
>  	    IEEE80211_HT_CAP_SGI_20 |
>  	    IEEE80211_HT_CAP_SGI_40 |
> -	    IEEE80211_HT_CAP_TX_STBC |
>  	    IEEE80211_HT_CAP_RX_STBC;
> +
> +	if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_TXPATH) >= 2)
> +		spec->ht.cap |= IEEE80211_HT_CAP_TX_STBC;
> +
>  	spec->ht.ampdu_factor = 3;
>  	spec->ht.ampdu_density = 4;
>  	spec->ht.mcs.tx_params =





More information about the users mailing list