Search Linux Wireless

Re: [PATCH 3.14] mac80211: fix AP powersave TX vs. wakeup race

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

 



On Thu, Feb 20, 2014 at 09:52:45AM +0100, Johannes Berg wrote:
> +
> +		/* sync with ieee80211_sta_ps_deliver_wakeup */
> +		spin_lock(&sta->ps_lock);
> +		/*
> +		 * STA woke up the meantime and all the frames on ps_tx_buf have
> +		 * been queued to pending queue. No reordering can happen, go
> +		 * ahead and Tx the packet.
> +		 */
> +		if (!test_sta_flag(sta, WLAN_STA_PS_STA)) {
> +			spin_unlock(&sta->ps_lock);

Actually I'm not sure if we should check if both WLAN_STA_PS_DRIVER 
and WLAN_STA_PS_STA flags are clear ?

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