]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath10k: fix reporting channel survey data
authorAshok Raj Nagarajan <arnagara@qti.qualcomm.com>
Fri, 2 Sep 2016 05:29:53 +0000 (10:59 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 9 Sep 2016 12:10:35 +0000 (15:10 +0300)
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>
drivers/net/wireless/ath/ath10k/mac.c

index 4565321ad762f23b6788fdc2513daef6fc420c4a..c4d965fe990e310b07e98f06920fff0b753abd61 100644 (file)
@@ -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));