[mac80211]: allow ath10k to initialize using the board.bin contents
[openwrt/svn-archive/archive.git] / package / kernel / mac80211 / patches / 920-ath10k_allow_fallback_to_board_bin_on_empty_otp_stream.patch
1 --- a/drivers/net/wireless/ath/ath10k/core.c
2 +++ b/drivers/net/wireless/ath/ath10k/core.c
3 @@ -277,7 +277,10 @@ static int ath10k_download_and_run_otp(s
4
5 ath10k_dbg(ATH10K_DBG_BOOT, "boot otp execute result %d\n", result);
6
7 - if (result != 0) {
8 + if (result = 2) {
9 + ath10k_warn("otp stream is empty, using board.bin contents");
10 + return 0;
11 + } else if (result != 0) {
12 ath10k_err("otp calibration failed: %d", result);
13 return -EINVAL;
14 }