summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-02-28 09:55:48 +0100
committerJohannes Berg <johannes.berg@intel.com>2024-03-04 14:34:05 +0100
commit07fba2277fcedd0948bec657f76ef374d0157d93 (patch)
treeae5473fb02d8ba2a814854fab0b960227eeec208 /net/mac80211
parentwifi: mac80211: remove TDLS peers only on affected link (diff)
downloadlinux-07fba2277fcedd0948bec657f76ef374d0157d93.tar.xz
linux-07fba2277fcedd0948bec657f76ef374d0157d93.zip
wifi: mac80211: remove TDLS peers on link deactivation
If a link is deactivated, we really cannot sustain any TDLS connections on that link any more. With the API now changed, fix this issue and remove TDLS connections. Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://msgid.link/20240228095719.a7dd812c37bf.I3474dbde79e9e7a539d47f6f81f32e6c3e459080@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/link.c b/net/mac80211/link.c
index 87a413374ece..685ec66b4264 100644
--- a/net/mac80211/link.c
+++ b/net/mac80211/link.c
@@ -356,7 +356,7 @@ static int _ieee80211_set_active_links(struct ieee80211_sub_if_data *sdata,
link = sdata_dereference(sdata->link[link_id], sdata);
- /* FIXME: kill TDLS connections on the link */
+ ieee80211_teardown_tdls_peers(link);
ieee80211_link_release_channel(link);
}