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)
commit77eb3d693182b4eaa88c6ba406fbb92b1f1bd636
tree7f93f4225c00094466f3f54c5b2d690ee6a08aec
parentfe79f6314a717cf031a6c04f180910583633c37e
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>
drivers/net/wireless/ath/ath10k/mac.c