diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-07-12 13:36:37 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-15 11:43:21 +0200 |
commit | b048c98447fde83de9f9a2b0974aa1ffd931d012 (patch) | |
tree | 55b28cd4ce49a75815e3c7fb4c78528db9a73e78 /net/mac80211/iface.c | |
parent | wifi: mac80211: prohibit DEAUTH_NEED_MGD_TX_PREP in MLO (diff) | |
download | linux-b048c98447fde83de9f9a2b0974aa1ffd931d012.tar.xz linux-b048c98447fde83de9f9a2b0974aa1ffd931d012.zip |
wifi: mac80211: release channel context on link stop
When a link is stopped for removal, release the channel
context it may have.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
-rw-r--r-- | net/mac80211/iface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 7410370c291b..3d485835dec2 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -420,6 +420,8 @@ static void ieee80211_link_stop(struct ieee80211_link_data *link) { if (link->sdata->vif.type == NL80211_IFTYPE_STATION) ieee80211_mgd_stop_link(link); + + ieee80211_link_release_channel(link); } struct link_container { |