Skip to contentSkip to conversation

rtlwifi: rtl8188ee: Fix regression due to commit d1d1a96bdb44

PATCH In review Larry Finger 2 participants 3 messages Feb 19, 2020 – Mar 13, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtlwifi: rtl8188ee: Fix regression due to commit d1d1a96bdb44

For some unexplained reason, commit d1d1a96bdb44 ("rtlwifi: rtl8188ee:
Remove local configuration variable") broke at least one system. As the only net effect of the change was to remove 2 bytes from the start of struct phy_status_rpt, this patch adds 2 bytes of padding at the beginning of the struct.

Fixes d1d1a96bdb44 ("rtlwifi: rtl8188ee: Remove local configuration variable")
Cc Stable <[email protected]> # V5.4+
---
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.h | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.h +1 -0
index 917729807514..e17f70b4d199 100644
@@ -561,6 +561,7 @@ static inline void clear_pci_tx_desc_content(__le32 *__pdesc, int _size)
 	 rxmcs == DESC92C_RATE11M)
 
 struct phy_status_rpt {
+	u8	padding[2];
 	u8	ch_corr[2];
 	u8	cck_sig_qual_ofdm_pwdb_all;
 	u8	cck_agc_rpt_ofdm_cfosho_a;
Signature · 1 line
2.25.0
#1 lore raw
Quoted 11 lines · Larry Finger

For some unexplained reason, commit d1d1a96bdb44 ("rtlwifi: rtl8188ee:
Remove local configuration variable") broke at least one system. As the only net effect of the change was to remove 2 bytes from the start of struct phy_status_rpt, this patch adds 2 bytes of padding at the beginning of the struct.

Fixes d1d1a96bdb44 ("rtlwifi: rtl8188ee: Remove local configuration variable")
Cc Stable <[email protected]> # V5.4+

Patch applied to wireless-drivers.git, thanks.

c80b18cbb04b rtlwifi: rtl8188ee: Fix regression due to commit d1d1a96bdb44

Signature · 3 lines
https://patchwork.kernel.org/patch/11392353/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#2 lore raw
Quoted 14 lines · Kalle Valo
Quoted 11 lines · Larry Finger

For some unexplained reason, commit d1d1a96bdb44 ("rtlwifi: rtl8188ee:
Remove local configuration variable") broke at least one system. As the only net effect of the change was to remove 2 bytes from the start of struct phy_status_rpt, this patch adds 2 bytes of padding at the beginning of the struct.

Fixes d1d1a96bdb44 ("rtlwifi: rtl8188ee: Remove local configuration variable")
Cc Stable <[email protected]> # V5.4+
Quoted 3 lines

Patch applied to wireless-drivers.git, thanks.

c80b18cbb04b rtlwifi: rtl8188ee: Fix regression due to commit d1d1a96bdb44

While writing the pull request for Dave I noticed that the commit log does not describe the symptoms in any way. I found the report (connect issues) but in the future please describe the bug from user's point of view in the commit log, not just the solution.

Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches