Revert "wifi: rtw88: always wait for both firmware loading attempts"
This reverts commit 5dbdf4c053
.
This commit is contained in:
parent
cbe050461f
commit
24c95b7dbb
1 changed files with 3 additions and 4 deletions
|
@ -1007,21 +1007,20 @@ static int rtw_wait_firmware_completion(struct rtw_dev *rtwdev)
|
|||
{
|
||||
struct rtw_chip_info *chip = rtwdev->chip;
|
||||
struct rtw_fw_state *fw;
|
||||
int ret = 0;
|
||||
|
||||
fw = &rtwdev->fw;
|
||||
wait_for_completion(&fw->completion);
|
||||
if (!fw->firmware)
|
||||
ret = -EINVAL;
|
||||
return -EINVAL;
|
||||
|
||||
if (chip->wow_fw_name) {
|
||||
fw = &rtwdev->wow_fw;
|
||||
wait_for_completion(&fw->completion);
|
||||
if (!fw->firmware)
|
||||
ret = -EINVAL;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rtw_power_on(struct rtw_dev *rtwdev)
|
||||
|
|
Loading…
Add table
Reference in a new issue