Revert "wifi: rtw88: always wait for both firmware loading attempts"

This reverts commit 5dbdf4c053.
This commit is contained in:
Ksawlii 2024-11-24 00:23:31 +01:00
parent cbe050461f
commit 24c95b7dbb

View file

@ -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)