mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-24 21:43:40 +00:00
rtl8188eu: Improve firmware loading diagnostics
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
bf9abe2b9e
commit
7c902ec968
1 changed files with 5 additions and 1 deletions
|
@ -588,7 +588,10 @@ static int load_firmware(struct rt_firmware *pFirmware, struct device *device)
|
||||||
s32 rtStatus = _SUCCESS;
|
s32 rtStatus = _SUCCESS;
|
||||||
const struct firmware *fw;
|
const struct firmware *fw;
|
||||||
const char *fw_name = "rtlwifi/rtl8188eufw.bin";
|
const char *fw_name = "rtlwifi/rtl8188eufw.bin";
|
||||||
if (request_firmware(&fw, fw_name, device)) {
|
int err = request_firmware(&fw, fw_name, device);
|
||||||
|
|
||||||
|
if (err) {
|
||||||
|
pr_err("Request firmware failed with error 0x%x\n", err);
|
||||||
rtStatus = _FAIL;
|
rtStatus = _FAIL;
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
@ -605,6 +608,7 @@ static int load_firmware(struct rt_firmware *pFirmware, struct device *device)
|
||||||
|
|
||||||
pFirmware->szFwBuffer = kzalloc(FW_8188E_SIZE, GFP_KERNEL);
|
pFirmware->szFwBuffer = kzalloc(FW_8188E_SIZE, GFP_KERNEL);
|
||||||
if (!pFirmware->szFwBuffer) {
|
if (!pFirmware->szFwBuffer) {
|
||||||
|
pr_err("Failed to allocate pFirmware->szFwBuffer\n");
|
||||||
rtStatus = _FAIL;
|
rtStatus = _FAIL;
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue