Skip to content

Commit

Permalink
mac80211: notify offchannel expire on mgmt_tx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Prestwood authored and Johannes Berg committed Jun 14, 2019
1 parent 1c38c7f commit ddb754a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/mac80211/offchannel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ddb754a

Please sign in to comment.