diff mbox series

[3/3] mac80211: notify offchannel expire on mgmt_tx

Message ID 20190612193510.27680-3-james.prestwood@linux.intel.com (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show
Series [1/3] net: wireless: trace: add trace for tx_mgmt_expired | expand

Commit Message

James Prestwood June 12, 2019, 7:35 p.m. UTC
Signed-off-by: James Prestwood <james.prestwood@linux.intel.com>
---
 net/mac80211/offchannel.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c
index 8ef4153cd299..b07aec5e7da4 100644
--- a/net/mac80211/offchannel.c
+++ b/net/mac80211/offchannel.c
@@ -202,6 +202,11 @@  static void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc)
 		cfg80211_remain_on_channel_expired(&roc->sdata->wdev,
 						   roc->cookie, roc->chan,
 						   GFP_KERNEL);
+	else
+		cfg80211_tx_mgmt_expired(&roc->sdata->wdev,
+						   roc->mgmt_tx_cookie,
+						   roc->chan,
+						   GFP_KERNEL);
 
 	list_del(&roc->list);
 	kfree(roc);