diff mbox series

[3/3] wifi: rtw89: remove redundant check of entering LPS

Message ID 20230527082939.11206-4-pkshih@realtek.com (mailing list archive)
State Accepted
Commit b408f33b35a4de606bfbd0de33b8f971bc5488ba
Delegated to: Kalle Valo
Headers show
Series wifi: rtw88/89: add PS calculation to repair PS mode | expand

Commit Message

Ping-Ke Shih May 27, 2023, 8:29 a.m. UTC
Originally, add this check rule to prevent entering LPS if more than one
vif (in station mode) connect to AP. Since we have checked this by previous
commit, remove this redundant check.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
 drivers/net/wireless/realtek/rtw89/core.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c
index 101047686fffb..65581ca506d3f 100644
--- a/drivers/net/wireless/realtek/rtw89/core.c
+++ b/drivers/net/wireless/realtek/rtw89/core.c
@@ -2619,9 +2619,6 @@  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;