920-ath10k_allow_fallback_to_board_bin_on_empty_otp_stream.patch 463 B

1234567891011121314
  1. --- a/drivers/net/wireless/ath/ath10k/core.c
  2. +++ b/drivers/net/wireless/ath/ath10k/core.c
  3. @@ -280,7 +280,10 @@ static int ath10k_download_and_run_otp(s
  4. ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot otp execute result %d\n", result);
  5. - if (result != 0) {
  6. + if (result == 2) {
  7. + ath10k_warn(ar, "otp stream is empty, using board.bin contents");
  8. + return 0;
  9. + } else if (result != 0) {
  10. ath10k_err(ar, "otp calibration failed: %d", result);
  11. return -EINVAL;
  12. }