aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Hao Huang <[email protected]>2023-04-15 11:50:15 +0800
committerKalle Valo <[email protected]>2023-04-17 12:49:52 +0300
commit982a91642708bb55246a7b169cb573866260124c (patch)
treee94a0331869494426e8c5ae775fd9f15759ec2b7
parentac83f380905591beecfe5b29a9ef811e35a3aa8d (diff)
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: Po-Hao Huang <[email protected]> Signed-off-by: Ping-Ke Shih <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/net/wireless/realtek/rtw89/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c
index 8bbc05571104..a589f0902a92 100644
--- a/drivers/net/wireless/realtek/rtw89/core.c
+++ b/drivers/net/wireless/realtek/rtw89/core.c
@@ -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;