Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266307
b: refs/heads/master
c: 6f2d933
h: refs/heads/master
i:
  266305: 23c0640
  266303: a05e8eb
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Sep 21, 2011
1 parent 94d66a6 commit 58e34dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: da3ba88a9996cd64c6768bed5727e02da81e2c8d
refs/heads/master: 6f2d93353a48af4d5b6ea2a79994d7c9a94b356a
10 changes: 4 additions & 6 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,17 +460,15 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
synchronize_rcu();
kfree(old_beacon);

/* free all potentially still buffered bcast frames */
while ((skb = skb_dequeue(&sdata->u.ap.ps_bc_buf))) {
local->total_ps_buffered--;
dev_kfree_skb(skb);
}

/* down all dependent devices, that is VLANs */
list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans,
u.vlan.list)
dev_close(vlan->dev);
WARN_ON(!list_empty(&sdata->u.ap.vlans));

/* free all potentially still buffered bcast frames */
local->total_ps_buffered -= skb_queue_len(&sdata->u.ap.ps_bc_buf);
skb_queue_purge(&sdata->u.ap.ps_bc_buf);
}

if (going_down)
Expand Down

0 comments on commit 58e34dd

Please sign in to comment.