[PATCH wireless-next 0/2] wifi: cfg80211/mac80211: optimize station info handling

Sarika Sharma
2026-04-28T09:09:41Z

This series improve memory and logic efficiency in cfg80211 and
mac80211 during NL80211_CMD_GET_STATION. Allocate link_sinfo and
link tidstats objects only for valid links to reduce memory usage.
Avoid setting non-MLO applicable fields for MLO stations to
eliminate redundant operations and simplify the code path.

Sarika Sharma (2):
wifi: cfg80211/mac80211: change memory allocation for link_sinfo
structure
wifi: cfg80211/mac80211: set only non-MLO-applicable fields for
non-MLO stations

include/net/cfg80211.h | 29 ++++++++++++++++---
net/mac80211/ethtool.c | 4 +++
net/mac80211/sta_info.c | 63 ++++++++++++++++++++++++-----------------
net/wireless/nl80211.c | 35 ++++-------------------
net/wireless/util.c | 21 ++++++++++++++
5 files changed, 93 insertions(+), 59 deletions(-)

base-commit: 1f5ffc672165ff851063a5fd044b727ab2517ae3
--
2.34.1