aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/debug.c
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2019-02-28 11:50:40 +0200
committerKalle Valo <kvalo@codeaurora.org>2019-02-28 11:50:40 +0200
commit501faf710230b67e470b314868110357cf3a554d (patch)
tree5f4200dcc876ed7e7b0be8403f3f3d20b589190f /drivers/net/wireless/ath/ath10k/debug.c
parentrtlwifi: rtl8192se: Remove set but not used variable 'seg_ptr' (diff)
parentwil6210: check null pointer in _wil_cfg80211_merge_extra_ies (diff)
downloadlinux-dev-501faf710230b67e470b314868110357cf3a554d.tar.xz
linux-dev-501faf710230b67e470b314868110357cf3a554d.zip
Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
ath.git patches for 5.1. Major changes: ath10k * more preparation for SDIO support wil6210 * support up to 20 stations in AP mode
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c
index 1b8903280d42..32d967a31c65 100644
--- a/drivers/net/wireless/ath/ath10k/debug.c
+++ b/drivers/net/wireless/ath/ath10k/debug.c
@@ -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));