summaryrefslogtreecommitdiff
path: root/fwdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fwdl.c')
-rw-r--r--fwdl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fwdl.c b/fwdl.c
index 99515bc..2f0647d 100644
--- a/fwdl.c
+++ b/fwdl.c
@@ -66,11 +66,13 @@ int mwl_fwdl_download_firmware(struct ieee80211_hw *hw)
#else
u32 fwreadysignature = HOSTCMD_SOFTAP_FWRDY_SIGNATURE;
#endif
+ int rc = mwl_fwcmd_reset(hw);
+ if (rc < 0)
+ return rc;
+
fw = priv->fw_ucode;
- mwl_fwcmd_reset(hw);
-
/* FW before jumping to boot rom, it will enable PCIe transaction retry,
* wait for boot code to stop it.
*/