]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - net/mac80211/cfg.c
Merge tag 'v3.14.78' into linux-3.14.x-rpi
[people/arne_f/kernel.git] / net / mac80211 / cfg.c
index 453e974287d19b52971116bca5e0e401746f3ffb..ccaffd79dc6d6813fc8a44b8f26a1fdc4323abb7 100644 (file)
@@ -1126,7 +1126,7 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
 
        /* 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);
+       ieee80211_purge_tx_queue(&local->hw, &sdata->u.ap.ps.bc_buf);
 
        ieee80211_vif_copy_chanctx_to_vlans(sdata, true);
        mutex_lock(&local->mtx);