ath10k: remove the calibration data fetch for sdio
authorWen Gong <wgong@codeaurora.org>
Mon, 18 Feb 2019 06:14:31 +0000 (14:14 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 Feb 2019 13:05:26 +0000 (15:05 +0200)
The calibration data fetch will trigger sdio error, then sdio will
become fail untill reboot system.

If happens when run ifconfig wlan down, then ifconfig wlan up will
fail untill reboot system.Remove it fix the ifconfig wlan issue.

Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00005-QCARMSWP-1.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/debug.c

index 1b8903280d423505e9aaa52787437cbce2865d69..32d967a31c654c9a69e8ef2bd9ca4bc63963963c 100644 (file)
@@ -1252,6 +1252,9 @@ static int ath10k_debug_cal_data_fetch(struct ath10k *ar)
        if (WARN_ON(ar->hw_params.cal_data_len > ATH10K_DEBUG_CAL_DATA_LEN))
                return -EINVAL;
 
+       if (ar->hw_params.cal_data_len == 0)
+               return -EOPNOTSUPP;
+
        hi_addr = host_interest_item_address(HI_ITEM(hi_board_data));
 
        ret = ath10k_hif_diag_read(ar, hi_addr, &addr, sizeof(addr));