Search Linux Wireless

Re: [PATCH] mac80211_hwsim: Report rate info in tx status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2012-03-28 at 11:17 +0200, Timo Lindhorst wrote:
>  
> +	if (!ack)
> +		for (i = 0; i < IEEE80211_TX_MAX_RATES; i++)
> +			tx_count[i] = txi->control.rates[i].count;
> +

> +
> +	if (ack) {
...
> +	} else {
> +		for (i = 0; i < IEEE80211_TX_MAX_RATES; i++)
> +			txi->control.rates[i].count = tx_count[i];
> +	}

I don't think I understand why you're copying the same data over itself?

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux