linux/drivers/net/wireless
Ping-Ke Shih a7e9c2e407 wifi: rtw88: correct PS calculation for SUPPORTS_DYNAMIC_PS
commit 3918dd0177 upstream.

This driver relies on IEEE80211_CONF_PS of hw->conf.flags to turn off PS or
turn on dynamic PS controlled by driver and firmware. Though this would be
incorrect, it did work before because the flag is always recalculated until
the commit 28977e790b ("wifi: mac80211: skip powersave recalc if driver SUPPORTS_DYNAMIC_PS")
is introduced by kernel 5.20 to skip to recalculate IEEE80211_CONF_PS
of hw->conf.flags if driver sets SUPPORTS_DYNAMIC_PS.

Correct this by doing recalculation while BSS_CHANGED_PS is changed and
interface is added or removed. It is allowed to enter PS only if single
one station vif is working. Without this fix, driver doesn't enter PS
anymore that causes higher power consumption.

Fixes: bcde60e599 ("rtw88: remove misleading module parameter rtw_fw_support_lps")
Cc: stable@vger.kernel.org # 6.1+
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230527082939.11206-2-pkshih@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-14 11:15:34 +02:00
..
admtek
ath wifi: ath11k: Fix SKB corruption in REO destination ring 2023-05-24 17:32:39 +01:00
atmel
broadcom wifi: b43: fix incorrect __packed annotation 2023-06-09 10:34:15 +02:00
cisco
intel wifi: iwlwifi: mvm: Fix -Warray-bounds bug in iwl_mvm_wait_d3_notif() 2023-06-14 11:15:26 +02:00
intersil
marvell
mediatek wifi: mt76: mt7615: fix possible race in mt7615_mac_sta_poll 2023-06-14 11:15:16 +02:00
microchip
purelifi
quantenna
ralink
realtek wifi: rtw88: correct PS calculation for SUPPORTS_DYNAMIC_PS 2023-06-14 11:15:34 +02:00
rsi
silabs
st
ti
zydas
Kconfig
mac80211_hwsim.c
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
virt_wifi.c
wl3501_cs.c
wl3501.h