|
@@ -308,11 +308,10 @@ void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc, bool free)
|
|
|
|
|
|
/* was never transmitted */
|
|
|
if (roc->frame) {
|
|
|
- cfg80211_mgmt_tx_status(&roc->sdata->wdev,
|
|
|
- (unsigned long)roc->frame,
|
|
|
+ cfg80211_mgmt_tx_status(&roc->sdata->wdev, roc->mgmt_tx_cookie,
|
|
|
roc->frame->data, roc->frame->len,
|
|
|
false, GFP_KERNEL);
|
|
|
- kfree_skb(roc->frame);
|
|
|
+ ieee80211_free_txskb(&roc->sdata->local->hw, roc->frame);
|
|
|
}
|
|
|
|
|
|
if (!roc->mgmt_tx_cookie)
|