Commit 982a9164 authored by Po-Hao Huang's avatar Po-Hao Huang Committed by Kalle Valo
Browse files

wifi: rtw89: Disallow power save with multiple stations



Power saving for more than one station is not supported currently.
Disallow entering PS mode when we have more than one associated
stations.

Signed-off-by: default avatarPo-Hao Huang <phhuang@realtek.com>
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230415035016.15788-1-pkshih@realtek.com
parent ac83f380
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2509,6 +2509,9 @@ static void rtw89_vif_enter_lps(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwv
	    rtwvif->tdls_peer)
		return;

	if (rtwdev->total_sta_assoc > 1)
		return;

	if (rtwvif->offchan)
		return;