Search Linux Wireless

Re: [PATCH v2 3/5] mac80211: improve the rate control API

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

 



On Tue, Apr 16, 2013 at 01:38:44PM +0200, Felix Fietkau wrote:
> @@ -454,40 +666,27 @@ void rate_control_get_rate(struct ieee80211_sub_if_data *sdata,
[...]
> +int rate_control_set_rates(struct ieee80211_hw *hw,
> +			   struct ieee80211_sta *pubsta,
> +			   struct ieee80211_sta_rates *rates)
> +{
> +	struct ieee80211_sta_rates *old = rcu_dereference(pubsta->rates);
> +
> +	rcu_assign_pointer(pubsta->rates, rates);
> +	if (old)
> +		kfree_rcu(old, rcu_head);

This means the rate control module must allocate a different
ieee80211_sta_rates right ?

 
Karl
--
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