mbox series

[v2,0/3] wifi: cfg80211/mac80211: add support to flush stations based on link ID

Message ID 20240205162952.1697646-1-quic_adisi@quicinc.com
Headers show
Series wifi: cfg80211/mac80211: add support to flush stations based on link ID | expand

Message

Aditya Kumar Singh Feb. 5, 2024, 4:29 p.m. UTC
Currently whenever sta_flush() function is called, it flushes all stations
connected to the given interface. However in case of MLO, all the links
would be using the same interface and hence at certain cases flushing all
stations is not desireable.

There is a need to flush the stations based on link ID. This series aims
to add support for the same.

Currently two cases are handled - 
1. During NL80211_CMD_DEL_STATION command handling. If this is called
   without any mac address, all stations present on that interfaces are
   flushed. More details in the patch [1/3]

2. During stopping link AP via ieee80211_stop_ap(). Again here, all
   stations are flushed. More details in the patch [3/3]

Aditya Kumar Singh (3):
  wifi: cfg80211: add support for link id attribute in
    NL80211_CMD_DEL_STATION
  wifi: mac80211: add link id argument for sta_flush() function
  wifi: mac80211: remove only own link stations during stop_ap
---
v2: * re-phrased commit message in 1/3, 2/3 and 3/3.
    * rebased on latest ToT

---
 include/net/cfg80211.h       |  3 +++
 include/uapi/linux/nl80211.h |  4 +++-
 net/mac80211/cfg.c           |  4 ++--
 net/mac80211/ibss.c          |  4 ++--
 net/mac80211/iface.c         |  2 +-
 net/mac80211/mesh.c          |  2 +-
 net/mac80211/mlme.c          |  2 +-
 net/mac80211/ocb.c           |  2 +-
 net/mac80211/sta_info.c      | 21 ++++++++++++++-------
 net/mac80211/sta_info.h      | 14 +++++++++++---
 net/wireless/nl80211.c       | 19 ++++++++++++++++++-
 net/wireless/trace.h         |  7 +++++--
 12 files changed, 62 insertions(+), 22 deletions(-)


base-commit: 679dd27b4ef33d4f596cbf450a3b2742fc54962a