Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290009
b: refs/heads/master
c: 4f3eb0b
h: refs/heads/master
i:
  290007: 4448f27
v: v3
  • Loading branch information
Helmut Schaa authored and John W. Linville committed Jan 30, 2012
1 parent cf29acc commit cd12b9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 19468413e8d98d44be8daf0acaf8d576dfc53fa2
refs/heads/master: 4f3eb0ba4817e55e1b5b2f63fcf3f266c328fc1a
18 changes: 9 additions & 9 deletions trunk/net/mac80211/sta_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,15 +750,6 @@ int __must_check __sta_info_destroy(struct sta_info *sta)

sta->dead = true;

if (test_sta_flag(sta, WLAN_STA_PS_STA)) {
BUG_ON(!sdata->bss);

clear_sta_flag(sta, WLAN_STA_PS_STA);

atomic_dec(&sdata->bss->num_sta_ps);
sta_info_recalc_tim(sta);
}

local->num_sta--;
local->sta_generation++;

Expand Down Expand Up @@ -790,6 +781,15 @@ int __must_check __sta_info_destroy(struct sta_info *sta)
*/
synchronize_rcu();

if (test_sta_flag(sta, WLAN_STA_PS_STA)) {
BUG_ON(!sdata->bss);

clear_sta_flag(sta, WLAN_STA_PS_STA);

atomic_dec(&sdata->bss->num_sta_ps);
sta_info_recalc_tim(sta);
}

for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]);
__skb_queue_purge(&sta->ps_tx_buf[ac]);
Expand Down

0 comments on commit cd12b9d

Please sign in to comment.