[rt2x00-users] [PATCH] rt2x00: Use IEEE80211_TX_CTL_STBC flag

Gertjan van Wingerde gwingerde at gmail.com
Sun May 30 00:31:18 AEST 2010


On 05/29/10 16:25, Ivo van Doorn wrote:
> Use the IEEE80211_TX_CTL_STBC flag to determine the
> correct value to be used for the STBC field in the
> TX descriptor
> 
> Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>

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

> ---
>  drivers/net/wireless/rt2x00/rt2x00ht.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/rt2x00/rt2x00ht.c b/drivers/net/wireless/rt2x00/rt2x00ht.c
> index 5a40760..2a73bb6 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00ht.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00ht.c
> @@ -44,7 +44,9 @@ void rt2x00ht_create_tx_descriptor(struct queue_entry *entry,
>  		txdesc->mpdu_density = 0;
>  
>  	txdesc->ba_size = 7;	/* FIXME: What value is needed? */
> -	txdesc->stbc = 0;	/* FIXME: What value is needed? */
> +
> +	txdesc->stbc =
> +	    (tx_info->flags & IEEE80211_TX_CTL_STBC) >> IEEE80211_TX_CTL_STBC_SHIFT;
>  
>  	txdesc->mcs = rt2x00_get_rate_mcs(hwrate->mcs);
>  	if (txrate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE)





More information about the users mailing list