Skip to content

Commit db28569

Browse files
Vivek Natarajanlinvjw
authored andcommitted
mac80211: Clear PS related flag on disabling power save.
Clear IEEE80211_STA_NULLFUNC_ACKED flag on disabling power save. Without this fix, there is a chance of setting CONF_PS before sending nullfunc frame. Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 1a63e2c commit db28569

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/mac80211/tx.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ ieee80211_tx_h_dynamic_ps(struct ieee80211_tx_data *tx)
236236
if (local->hw.conf.flags & IEEE80211_CONF_PS) {
237237
ieee80211_stop_queues_by_reason(&local->hw,
238238
IEEE80211_QUEUE_STOP_REASON_PS);
239+
ifmgd->flags &= ~IEEE80211_STA_NULLFUNC_ACKED;
239240
ieee80211_queue_work(&local->hw,
240241
&local->dynamic_ps_disable_work);
241242
}

0 commit comments

Comments
 (0)