]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: add support towards MLO handling of station statistics
authorSarika Sharma <quic_sarishar@quicinc.com>
Wed, 28 May 2025 05:44:11 +0000 (11:14 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Jun 2025 13:19:26 +0000 (15:19 +0200)
commite581b7fe62218d390520287e0095bfd6fe0454f8
treee250de686ae3c526a2d10e9d763b6df00d01ef8f
parent140c6a61d83cbd85adba769b5ef8d61acfa5b392
wifi: mac80211: add support towards MLO handling of station statistics

Currently, in supporting API's to fill sinfo structure from sta
structure, is mapped to fill the fields from sta->deflink. However,
for multi-link (ML) station, sinfo structure should be filled from
corresponding link_id.

Therefore, add  link_id as an additional argument in supporting API's
for filling sinfo structure correctly. Link_id is set to -1 for non-ML
station and corresponding link_id for ML stations. In supporting API's
for filling sinfo structure, check for link_id, if link_id < 0, fill
the sinfo structure from sta->deflink, otherwise fill from
sta->link[link_id].

Current, changes are done at the deflink level i.e, pass -1 as link_id.
Actual link_id will be added in subsequent patches to support
station statistics for MLO.

Signed-off-by: Sarika Sharma <quic_sarishar@quicinc.com>
Link: https://patch.msgid.link/20250528054420.3050133-2-quic_sarishar@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/lib.c
include/net/mac80211.h
net/mac80211/ibss.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h
net/mac80211/util.c