On 2013-06-07 10:25 AM, Thomas Huehn wrote:
> This patch enabels ath5k to use the new rate table to lookup each
> mrr rate and retry information per packet.
> 
> Signed-off-by: Benjamin Vahl <bv...@net.t-labs.tu-berlin.de>
> Signed-off-by: Thomas Huehn <tho...@net.t-labs.tu-berlin.de>
> ---
>  drivers/net/wireless/ath/ath5k/base.c         |   77 
> ++++++++++++++++++++-----
>  drivers/net/wireless/ath/ath5k/base.h         |   14 +++--
>  drivers/net/wireless/ath/ath5k/mac80211-ops.c |    2 +-
>  3 files changed, 72 insertions(+), 21 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath5k/base.c 
> b/drivers/net/wireless/ath/ath5k/base.c
> index 7f702fe..c63759f 100644
> --- a/drivers/net/wireless/ath/ath5k/base.c
> +++ b/drivers/net/wireless/ath/ath5k/base.c
> @@ -1587,6 +1633,8 @@ ath5k_tx_frame_completed(struct ath5k_hw *ah, struct 
> sk_buff *skb,
>  
>       ieee80211_tx_info_clear_status(info);
>  
> +     memcpy(info->status.rates, bf->rates, sizeof(info->status.rates));
> +
>       for (i = 0; i < ts->ts_final_idx; i++) {
>               struct ieee80211_tx_rate *r =
>                       &info->status.rates[i];
Please make sure that either this code is able to deal with a size
mismatch of info->status.rates vs. bf->rates, or that it at least fails
at compile time if the size of info->status.rate gets changed.

- Felix
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to