[PATCH v2 0/4] nl80211: Station reads on kernels that do not filter the station dump
Andrei-Alexandru Bleortu
me at andrei-z.com
Fri Oct 16 16:59:52 PDT 2026
Station reads (i802_read_sta_data(), nl80211_get_link_signal()) use a
NL80211_CMD_GET_STATION dump with NL80211_ATTR_MAC and
NL80211_ATTR_STA_DUMP_LINK_STATS. A kernel without the latter ignores
NL80211_ATTR_MAC in a dump and returns every STA of the interface, and the
dump lists only the STAs of that interface.
Changes in v2:
- 3, 4 (new): a STA that dynamic VLAN bound to an AP_VLAN interface is not
in the dump of the AP interface, so its statistics read zero and its
inactive time 0: the inactivity check never removed it and RADIUS
accounting reported no traffic for it. Read it with a non-dump get when
the dump does not have it. 4 fails on such a kernel (7.2) without 3.
- 1, 2: unchanged.
v1: Message-ID <20261016190151.2603153-1-me at andrei-z.com>
Andrei-Alexandru Bleortu (4):
nl80211: Use only the requested STA from a station dump
tests: STA statistics with two STAs associated
nl80211: Read a STA on an AP_VLAN interface with a get
tests: AP VLAN and the statistics of a STA bound to a VLAN interface
src/drivers/driver_nl80211.c | 40 ++++++++++++++++++++++++++++++------
tests/hwsim/test_ap_open.py | 14 +++++++++++++
tests/hwsim/test_ap_vlan.py | 19 +++++++++++++++++
3 files changed, 67 insertions(+), 6 deletions(-)
--
2.47.3
More information about the Hostap
mailing list