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