Skip to contentSkip to conversation

wifi: rtlwifi: rtl8188ee: correct allstasleep in P2P PS H2C command

PATCH In review Ping-Ke Shih 1 participant 2 messages Nov 6, 2025 – Nov 11, 2025 Realtek wireless driver (rtlwifi family)

lore
Share & tools
lore

Ping-Ke Shih

author maintainer
#0 lore raw

PATCH 1/1 wifi: rtlwifi: rtl8188ee: correct allstasleep in P2P PS H2C command

The "->allstasleep" variable is a 1 bit bitfield. It can only be 0 or 1. This "= -1" assignement should be "= 0" as other chips and vendor driver.

---
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c +1 -1
index 7252bc621211..9a9f9e14f472 100644
@@ -694,7 +694,7 @@ void rtl88e_set_p2p_ps_offload_cmd(struct ieee80211_hw *hw, u8 p2p_ps_state)
 
 			if (P2P_ROLE_GO == rtlpriv->mac80211.p2p) {
 				p2p_ps_offload->role = 1;
-				p2p_ps_offload->allstasleep = -1;
+				p2p_ps_offload->allstasleep = 0;
 			} else {
 				p2p_ps_offload->role = 0;
 			}
Signature · 1 line
2.25.1
author maintainer
#1 lore raw
Quoted 6 lines · Ping-Ke Shih

The "->allstasleep" variable is a 1 bit bitfield. It can only be 0 or 1. This "= -1" assignement should be "= 0" as other chips and vendor driver.

1 patch(es) applied to rtw-next branch of rtw.git, thanks.

12e6bea1aac8 wifi: rtlwifi: rtl8188ee: correct allstasleep in P2P PS H2C command

---
https://github.com/pkshih/rtw.git