wifi: mac80211: flush only stations using requests links
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Mon, 5 Feb 2024 16:29:51 +0000 (21:59 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 12 Feb 2024 20:13:57 +0000 (21:13 +0100)
commitec67d6e0d491d2a2df270ddcb7aa44db0984e11c
treecd99e2a8cf8490c1f82f5fc48bcf419abaf0721a
parentf6ca96aa51a4ae1b3a416fbe85acdf1197c405a6
wifi: mac80211: flush only stations using requests links

Whenever sta_flush() function is invoked, all STAs present in that
interface are flushed. In case of MLO, it is desirable to only flush such
STAs that are at least using a given link id as one of their links.

Add support for this by making change in the __sta_info_flush API argument
to accept a link ID. And then, only if the STA is using the given link as
one of its links, it would be flushed.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Link: https://msgid.link/20240205162952.1697646-3-quic_adisi@quicinc.com
[reword commit message, in particular this isn't about "active" links]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ibss.c
net/mac80211/iface.c
net/mac80211/mesh.c
net/mac80211/mlme.c
net/mac80211/ocb.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h