diff options
| author | P Praneesh <praneesh.p@oss.qualcomm.com> | 2026-06-14 10:47:35 +0530 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-07-06 13:12:31 +0200 |
| commit | 2bfd9da88b95d89041c91c06acd1c38258edc38b (patch) | |
| tree | 3052a16301fc3fec27adb2243ba55c637ea39b0c /include/uapi | |
| parent | aef91f72994cffd6393a8372d38f5611e6c12ba2 (diff) | |
| download | linux-next-2bfd9da88b95d89041c91c06acd1c38258edc38b.tar.gz linux-next-2bfd9da88b95d89041c91c06acd1c38258edc38b.zip | |
wifi: cfg80211: support MAC address filtering in station dump for link stats
Currently, when userspace requests station information with
link statistics using NL80211_CMD_GET_STATION with the
NL80211_ATTR_STA_DUMP_LINK_STATS flag, the kernel uses the .doit callback
(nl80211_get_station) which sends a single netlink message. For MLO
stations with multiple links, the link statistics can be large and may
exceed the maximum netlink message size, causing the operation to fail
with -EMSGSIZE.
The .dumpit callback (nl80211_dump_station) already supports
fragmentation across multiple netlink messages, making it suitable
for handling large link statistics. However, it currently iterates over
all stations on the interface, which is inefficient when userspace only
wants information about a specific station.
Add support for MAC address filtering in nl80211_dump_station to allow
userspace to request fragmented link statistics for a specific station.
When NL80211_ATTR_MAC is present in a dump request, cache the MAC address
in the dump context and use rdev_get_station() to retrieve information for
only that station, instead of iterating over all stations with
rdev_dump_station().
This allows userspace tools (like iw) to use NL80211_CMD_GET_STATION with
NLM_F_DUMP flag to retrieve complete link statistics for a specific
station across multiple netlink messages, avoiding the message size
limitation.
Signed-off-by: P Praneesh <praneesh.p@oss.qualcomm.com>
Link: https://patch.msgid.link/20260614051739.3979947-6-praneesh.p@oss.qualcomm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
