diff options
author | Martin Kaistra <martin.kaistra@linutronix.de> | 2024-02-05 10:30:40 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-02-06 20:07:56 +0200 |
commit | 94dd7ce1885e530a7b10bbe50d5d68ba1bb99e6e (patch) | |
tree | b7677902ee288d8048b59246243d7728859ca2b1 /drivers/net/wireless/intel/iwlwifi/fw/api/debug.h | |
parent | 06b5b2942cf2b0878bd5bda2d35ffdb997874012 (diff) |
wifi: rtl8xxxu: update rate mask per sta
Until now, rtl8xxxu_watchdog_callback() only fetches RSSI and updates
the rate mask in station mode. This means, in AP mode only the default
rate mask is used.
In order to have the rate mask reflect the actual connection quality,
extend rtl8xxxu_watchdog_callback() to iterate over every sta. Like in
the rtw88 driver, add a function to collect all currently present stas
and then iterate over a list of copies to ensure no RCU lock problems
for register access via USB. Remove the existing RCU lock in
rtl8xxxu_refresh_rate_mask().
Since the currently used ieee80211_ave_rssi() is only for 'vif', add
driver-level tracking of RSSI per sta.
Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240205093040.1941140-1-martin.kaistra@linutronix.de
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/api/debug.h')
0 files changed, 0 insertions, 0 deletions