[PATCH] wifi: mwifiex: added delay after firmware downloaded.
From: David Lin
Date: Thu Oct 19 2023 - 23:36:07 EST
Added 100 ms delayed after firmware is downloaded and active in order to
avoid command timeout for the first command sent to firmware.
Signed-off-by: David Lin <yu-hao.lin@xxxxxxx>
---
drivers/net/wireless/marvell/mwifiex/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c
index d99127dc466e..a25e8bb8daec 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.c
+++ b/drivers/net/wireless/marvell/mwifiex/main.c
@@ -570,6 +570,7 @@ static int _mwifiex_fw_dpc(const struct firmware *firmware, void *context)
goto err_dnld_fw;
mwifiex_dbg(adapter, MSG, "WLAN FW is active\n");
+ mdelay(100);
if (cal_data_cfg) {
if ((request_firmware(&adapter->cal_data, cal_data_cfg,
--
2.25.1
<<attachment: winmail.dat>>