summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJames Prestwood <james.prestwood@linux.intel.com>2019-06-12 12:35:10 -0700
committerJohannes Berg <johannes.berg@intel.com>2019-06-14 16:08:28 +0200
commitddb754aa31813fd17d8374eba881827e6e2c85c6 (patch)
tree3dda36355ece93bdda51a986deb61dc858442aba /net
parent1c38c7f22068b54a7ba5f026a45663c6727ab84c (diff)
mac80211: notify offchannel expire on mgmt_tx
When the offchannel TX wait time expires, send the appropriate event. Signed-off-by: James Prestwood <james.prestwood@linux.intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/offchannel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c
index 8ef4153cd299..91372ea9f65f 100644
--- a/net/mac80211/offchannel.c
+++ b/net/mac80211/offchannel.c
@@ -202,6 +202,10 @@ 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);