From 8302d5637a21c8d316203830b115b85ef5d4be90 Mon Sep 17 00:00:00 2001 From: dubhater Date: Sun, 4 Dec 2022 18:09:32 +0200 Subject: [PATCH] Reset the firmware after uploading it to the chip This is necessary to make the firmware start, in Linux too, not just in Windows. This fixes the slow download and even slower upload speeds. --- hal/rtl8710b/rtl8710b_hal_init.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hal/rtl8710b/rtl8710b_hal_init.c b/hal/rtl8710b/rtl8710b_hal_init.c index b273f2c..9794815 100644 --- a/hal/rtl8710b/rtl8710b_hal_init.c +++ b/hal/rtl8710b/rtl8710b_hal_init.c @@ -214,7 +214,6 @@ static s32 polling_fwdl_chksum(_adapter *adapter, u32 min_cnt, u32 timeout_ms) return ret; } -#ifdef PLATFORM_WINDOWS static s32 _FWFreeToGo(_adapter *adapter, u32 min_cnt, u32 timeout_ms) { s32 ret = _FAIL; @@ -255,7 +254,6 @@ static s32 _FWFreeToGo(_adapter *adapter, u32 min_cnt, u32 timeout_ms) return ret; } -#endif void rtl8710b_InitializeFirmwareVars(PADAPTER padapter) { @@ -572,9 +570,7 @@ s32 rtl8710b_FirmwareDownload(PADAPTER padapter, BOOLEAN bUsedWoWLANFw) // 20150128 Sinda/SD-Alex, OS will write 1dx during download FW to let driver stuck for waiting FW clear 0x1cc when resume from sleep. // Driver clear 0x1cc irrespective of download FW successful or failure to avoid driver stuck. rtw_write8(padapter, REG_HMETFR_8710B, 0xF); -#ifdef PLATFORM_WINDOWS rtStatus = _FWFreeToGo(padapter, 10, 200); -#endif } else goto DLFW_FAIL;