mac80211: update to wireless-testing 2014-09-26
[openwrt.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 @@ -250,7 +250,10 @@ static int ath10k_download_and_run_otp(s
4  
5         ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot otp execute result %d\n", result);
6  
7 -       if (result != 0) {
8 +       if (result == 2) {
9 +               ath10k_warn(ar, "otp stream is empty, using board.bin contents");
10 +               return 0;
11 +       } else if (result != 0) {
12                 ath10k_err(ar, "otp calibration failed: %d", result);
13                 return -EINVAL;
14         }