wifi: mac80211: extend support to fill link level sinfo structure
authorSarika Sharma <quic_sarishar@quicinc.com>
Wed, 28 May 2025 05:44:18 +0000 (11:14 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Jun 2025 13:19:26 +0000 (15:19 +0200)
commit505991fba9ec112770c79a0fea56b4c49a5ad2fa
tree7b8414f45bef3b53722e09c1ed8a9bec458ddc1a
parent8af903e4543e68800ebd9291ff86ed0dfbcfed1d
wifi: mac80211: extend support to fill link level sinfo structure

Currently, sinfo structure is supported to fill information at
deflink( or one of the links) level for station. This has problems
when applied to fetch multi-link(ML) station information.

Hence, if valid_links are present, support filling link_station
structure for each link.

This will be helpful to check the link related statistics during MLO.

Additionally, TXQ stats for pertid are applicable at station level
not at link level. Therefore check link_id is less then 0, before
filling TXQ stats in pertid stats.

Signed-off-by: Sarika Sharma <quic_sarishar@quicinc.com>
Link: https://patch.msgid.link/20250528054420.3050133-9-quic_sarishar@quicinc.com
[fix some indentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/mac80211/sta_info.c
net/wireless/util.c