linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] rtlwifi: rtl8821ae: fix firmware is not ready to run
@ 2018-06-27  8:01 pkshih
  2018-06-27 13:36 ` Larry Finger
  0 siblings, 1 reply; 3+ messages in thread
From: pkshih @ 2018-06-27  8:01 UTC (permalink / raw)
  To: kvalo; +Cc: Larry.Finger, linux-wireless

From: Ping-Ke Shih <pkshih@realtek.com>

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!".

Fixes: fe89707f0afa ("rtlwifi: rtl8821ae: Simplify loading of WOWLAN firmware")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
v2: fix commit log typo.
---
 drivers/net/wireless/realtek/rtlwifi/core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtlwifi/core.c b/drivers/net/wireless/realtek/rtlwifi/core.c
index a3f46203ee7a..4bf7967590ca 100644
--- a/drivers/net/wireless/realtek/rtlwifi/core.c
+++ b/drivers/net/wireless/realtek/rtlwifi/core.c
@@ -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);
 }
 
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] rtlwifi: rtl8821ae: fix firmware is not ready to run
  2018-06-27  8:01 [PATCH v2] rtlwifi: rtl8821ae: fix firmware is not ready to run pkshih
@ 2018-06-27 13:36 ` Larry Finger
  2018-06-28  1:53   ` Pkshih
  0 siblings, 1 reply; 3+ messages in thread
From: Larry Finger @ 2018-06-27 13:36 UTC (permalink / raw)
  To: pkshih, kvalo; +Cc: linux-wireless

On 06/27/2018 03:01 AM, pkshih@realtek.com wrote:
> From: Ping-Ke Shih <pkshih@realtek.com>
> 
> 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!".
> 
> Fixes: fe89707f0afa ("rtlwifi: rtl8821ae: Simplify loading of WOWLAN firmware")
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
> ---
> v2: fix commit log typo.
> ---
>   drivers/net/wireless/realtek/rtlwifi/core.c | 1 -
>   1 file changed, 1 deletion(-)

This change is a good one, and I approve of it. The only change is that it 
should have a Cc to stable as this code was added in kernel 4.0!

Larry

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] rtlwifi: rtl8821ae: fix firmware is not ready to run
  2018-06-27 13:36 ` Larry Finger
@ 2018-06-28  1:53   ` Pkshih
  0 siblings, 0 replies; 3+ messages in thread
From: Pkshih @ 2018-06-28  1:53 UTC (permalink / raw)
  To: kvalo@codeaurora.org, Larry.Finger@lwfinger.net
  Cc: linux-wireless@vger.kernel.org

T24gV2VkLCAyMDE4LTA2LTI3IGF0IDA4OjM2IC0wNTAwLCBMYXJyeSBGaW5nZXIgd3JvdGU6DQo+
IE9uIDA2LzI3LzIwMTggMDM6MDEgQU0sIHBrc2hpaEByZWFsdGVrLmNvbSB3cm90ZToNCj4gPiBG
cm9tOiBQaW5nLUtlIFNoaWggPHBrc2hpaEByZWFsdGVrLmNvbT4NCj4gPsKgDQo+ID4gcnRsODgy
MWFlIHVzZXMgdHdvIGtpbmRzIG9mIGZpcm13YXJlcyBmb3Igbm9ybWFsIGFuZCBXb1dsYW4gY2Fz
ZXMsIGFuZA0KPiA+IGVhY2ggZmlybXdhcmUgaGFzIGZpcm13YXJlIGRhdGEgYnVmZmVyIGFuZCBz
aXplIGluZGl2aWR1YWxseS4gT3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  1:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-27  8:01 [PATCH v2] rtlwifi: rtl8821ae: fix firmware is not ready to run pkshih
2018-06-27 13:36 ` Larry Finger
2018-06-28  1:53   ` Pkshih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).