Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247171
b: refs/heads/master
c: ca45de7
h: refs/heads/master
i:
  247169: 5f22b84
  247167: cd7fa91
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Apr 25, 2011
1 parent bfa6896 commit be1a363
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31d291a769b4318cbf7943ca149e04d201e2c931
refs/heads/master: ca45de77ad706e86b135b8564e21aa2c8a63f09b
16 changes: 11 additions & 5 deletions trunk/net/mac80211/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,23 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)

ieee80211_scan_cancel(local);

if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) {
mutex_lock(&local->sta_mtx);
list_for_each_entry(sta, &local->sta_list, list) {
set_sta_flags(sta, WLAN_STA_BLOCK_BA);
ieee80211_sta_tear_down_BA_sessions(sta, true);
}
mutex_unlock(&local->sta_mtx);
}

ieee80211_stop_queues_by_reason(hw,
IEEE80211_QUEUE_STOP_REASON_SUSPEND);

/* flush out all packets */
synchronize_net();

drv_flush(local, false);

local->quiescing = true;
/* make quiescing visible to timers everywhere */
mb();
Expand All @@ -43,11 +54,6 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)
/* tear down aggregation sessions and remove STAs */
mutex_lock(&local->sta_mtx);
list_for_each_entry(sta, &local->sta_list, list) {
if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) {
set_sta_flags(sta, WLAN_STA_BLOCK_BA);
ieee80211_sta_tear_down_BA_sessions(sta, true);
}

if (sta->uploaded) {
sdata = sta->sdata;
if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
Expand Down

0 comments on commit be1a363

Please sign in to comment.