Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath10k: re-enable the firmware fallback mechanism for testmode

The ath10k testmode uses request_firmware_direct() in order to avoid
producing firmware load warnings. Disabling the fallback mechanism was a
side effect of disabling warnings.

We now have a new API that allows us to avoid warnings while keeping the
fallback mechanism enabled. So use that instead.

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andres Rodriguez and committed by
Greg Kroah-Hartman
1bc4d68b c8e02802

+1 -1
+1 -1
drivers/net/wireless/ath/ath10k/testmode.c
··· 157 157 ar->hw_params.fw.dir, ATH10K_FW_UTF_FILE); 158 158 159 159 /* load utf firmware image */ 160 - ret = request_firmware_direct(&fw_file->firmware, filename, ar->dev); 160 + ret = firmware_request_nowarn(&fw_file->firmware, filename, ar->dev); 161 161 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode fw request '%s': %d\n", 162 162 filename, ret); 163 163