mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
wifi: mac80211: add an option to filter a sta from being flushed
Sometimes we might want to flush only part of the stations of a vif, for example only the TDLS ones. To allow this, add a do_not_flush_sta argument to __sta_info_flush, which in turn, will not flush this station. Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20241224192322.535e1fcca192.Icecf7f443bf98c9535ce8ec03b24d0d17dfbc28e@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
52674ee2f3
commit
a10723ced4
@@ -1567,7 +1567,7 @@ void sta_info_stop(struct ieee80211_local *local)
|
||||
|
||||
|
||||
int __sta_info_flush(struct ieee80211_sub_if_data *sdata, bool vlans,
|
||||
int link_id)
|
||||
int link_id, struct sta_info *do_not_flush_sta)
|
||||
{
|
||||
struct ieee80211_local *local = sdata->local;
|
||||
struct sta_info *sta, *tmp;
|
||||
@@ -1585,6 +1585,9 @@ int __sta_info_flush(struct ieee80211_sub_if_data *sdata, bool vlans,
|
||||
(!vlans || sdata->bss != sta->sdata->bss))
|
||||
continue;
|
||||
|
||||
if (sta == do_not_flush_sta)
|
||||
continue;
|
||||
|
||||
if (link_id >= 0 && sta->sta.valid_links &&
|
||||
!(sta->sta.valid_links & BIT(link_id)))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user