Signed-off-by: James Prestwood <[email protected]>
---
 net/mac80211/offchannel.c | 5 +++++
 1 file changed, 5 insertions(+)

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);
-- 
2.17.1

Reply via email to