rtlwifi: rtl8821ae: fix firmware is not ready to run
Subsystems (2)
[email protected]
maintainerPATCH v3 1/1 rtlwifi: rtl8821ae: fix firmware is not ready to run
From: Ping-Ke Shih <[email protected]>
Without this patch, firmware will not run properly on rtl8821ae, and it causes bad user experience. For example, bad connection performance with low rate, higher power consumption, and so on.
rtl8821ae uses two kinds of firmwares for normal and WoWlan cases, and each firmware has firmware data buffer and size individually. Original code always overwrite size of normal firmware rtlpriv->rtlhal.fwsize, and this mismatch causes firmware checksum error, then firmware can't start.
In this situation, driver gives message "Firmware is not ready to run!".
---
V3: Add more commit logs, Cc and Reviewed-by. Thank you, Larry.
v2: fix commit log typo.
--- drivers/net/wireless/realtek/rtlwifi/core.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/realtek/rtlwifi/core.c +0 -1
@@ -130,7 +130,6 @@ static void rtl_fw_do_work(const struct firmware *firmware, void *context, firmware->size); rtlpriv->rtlhal.wowlan_fwsize = firmware->size; } - rtlpriv->rtlhal.fwsize = firmware->size;release_firmware (firmware); }
Signature · 1 line
2.15.1
Quoted 11 lines · Ping-Ke Shih
From: Ping-Ke Shih <[email protected]>
Without this patch, firmware will not run properly on rtl8821ae, and it causes bad user experience. For example, bad connection performance with low rate, higher power consumption, and so on.
rtl8821ae uses two kinds of firmwares for normal and WoWlan cases, and each firmware has firmware data buffer and size individually. Original code always overwrite size of normal firmware
rtlpriv->rtlhal.fwsize, and this mismatch causes firmware checksum error, then firmware can't start.
Quoted 6 lines
In this situation, driver gives message "Firmware is not ready to run!".
Fixes fe89707f0afa ("rtlwifi: rtl8821ae: Simplify loading of WOWLAN firmware")Signed-off-by Ping-Ke Shih <[email protected]>Cc Stable <[email protected]> # 4.0+Reviewed-by Larry Finger <[email protected]>
Patch applied to wireless-drivers.git, thanks.
9a98302de199 rtlwifi: rtl8821ae: fix firmware is not ready to run
Signature · 3 lines
https://patchwork.kernel.org/patch/10492933/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches