Skip to contentSkip to conversation

rtlwifi: rtl8821ae: fix firmware is not ready to run

PATCH Superseded [email protected] 1 participant 1 message Jun 27, 2018 Realtek wireless driver (rtlwifi family)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 rtlwifi: rtl8821ae: fix firmware is not ready to run

From: Ping-Ke Shih <[email protected]>

rtl8821ae uses two kinds of firmwares for normal and WoWlan cases, and each firmware has two 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!".

Fixes fe89707f0afa ("rtlwifi: rtl8821ae: Simplify loading of WOWLAN firmware")
---
 drivers/net/wireless/realtek/rtlwifi/core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/realtek/rtlwifi/core.c +0 -1
index a3f46203ee7a..4bf7967590ca 100644
@@ -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