Commit ce4ef934 authored by Sven Joachim's avatar Sven Joachim Committed by Greg Kroah-Hartman
Browse files

rtlwifi: Fix fallback firmware loading



commit 1d9b168d upstream.

Commit f70e4df2 ("rtlwifi: Add code to read new versions of
firmware") added code to load an old firmware file if the new one is
not available.  Unfortunately that code is never reached because
request_firmware_nowait() does not wait for the firmware to show up
and returns 0 even if the file is not there.

Use the existing fallback mechanism introduced by commit 62009b7f
("rtlwifi: rtl8192cu: Add new firmware") instead.

Fixes: f70e4df2 ("rtlwifi: Add code to read new versions of firmware")
Signed-off-by: default avatarSven Joachim <svenjoac@gmx.de>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21da5e36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment