]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: cfg80211: clear sinfo->filled for MLO station statistics
authorSarika Sharma <quic_sarishar@quicinc.com>
Wed, 28 May 2025 05:44:17 +0000 (11:14 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Jun 2025 13:19:26 +0000 (15:19 +0200)
commit8af903e4543e68800ebd9291ff86ed0dfbcfed1d
tree751a39d06dc082add0bf7fc27750469c1fa16632
parent80b2fa46791742cf8723813bcc93cf39f107c034
wifi: cfg80211: clear sinfo->filled for MLO station statistics

Currently, sinfo->filled is for set in sta_set_sinfo() after filling
the corresponding fields in station_info structure for station statistics.

For non-ML stations, the fields are correctly filled from sta->deflink
and corresponding sinfo->filled bit are set, but for MLO any one of
link's data is filled and corresponding sinfo->filled bit is set.

For MLO before embed NL message, fields of sinfo structure like
bytes, packets, signal are updated with accumulated, best, least of all
links data. But some of fields like rssi, pertid don't make much sense
at MLO level.

Hence, to prevent misinterpretation, clear sinfo->filled for fields
which don't make much sense at MLO level. This will prevent filling
misleading values in NL message.

Signed-off-by: Sarika Sharma <quic_sarishar@quicinc.com>
Link: https://patch.msgid.link/20250528054420.3050133-8-quic_sarishar@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c