summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorAshok Raj Nagarajan2016-09-02 07:29:53 +0200
committerKalle Valo2016-09-09 14:10:35 +0200
commit77eb3d693182b4eaa88c6ba406fbb92b1f1bd636 (patch)
tree7f93f4225c00094466f3f54c5b2d690ee6a08aec /drivers/net
parentath10k: remove unnecessary error code assignment (diff)
downloadkernel-qcow2-linux-77eb3d693182b4eaa88c6ba406fbb92b1f1bd636.tar.gz
kernel-qcow2-linux-77eb3d693182b4eaa88c6ba406fbb92b1f1bd636.tar.xz
kernel-qcow2-linux-77eb3d693182b4eaa88c6ba406fbb92b1f1bd636.zip
ath10k: fix reporting channel survey data
When user requests for survey dump data, driver is providing wrong survey information. This information we sent is the survey data that we have collected during previous user request. This issue occurs because we request survey dump for wrong channel. With this change, we correctly display the correct and current survey information to userspace. Fixes: fa7937e3d5c2 ("ath10k: update bss channel survey information") Signed-off-by: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 4565321ad762..c4d965fe990e 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -6576,7 +6576,7 @@ static int ath10k_get_survey(struct ieee80211_hw *hw, int idx,
goto exit;
}
- ath10k_mac_update_bss_chan_survey(ar, survey->channel);
+ ath10k_mac_update_bss_chan_survey(ar, &sband->channels[idx]);
spin_lock_bh(&ar->data_lock);
memcpy(survey, ar_survey, sizeof(*survey));