ath11k: add support for spectral scan
authorKarthikeyan Periyasamy <periyasa@codeaurora.org>
Tue, 9 Jun 2020 07:33:34 +0000 (13:03 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2020 14:21:54 +0000 (17:21 +0300)
commit9d11b7bff9508101d05f06e461ab81b5f0dc90ae
tree5be817ba3ac3ea687e729bc25f51742b55af426f
parentbd6478559e27414e7def8247136b0dcb1e1392f8
ath11k: add support for spectral scan

spectral scan control interface is exposed through debugfs eentry.
Relayfs is used to collect the spectral data. These interfaces are
similar to ath10k spectral.

spectral debugfs interfaces are below,

echo background > /sys/kernel/debug/ieee80211/phy0/ath11k/spectral_scan_ctl
echo trigger > /sys/kernel/debug/ieee80211/phy0/ath11k/spectral_scan_ctl
iw dev wlan0 scan
echo disable > /sys/kernel/debug/ieee80211/phy0/ath11k/spectral_scan_ctl
cat /sys/kernel/debug/ieee80211/phy0/ath11k/spectral_scan0 > fft_samples.dump

Tested-on: IPQ8074 WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1

Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1591688014-26441-2-git-send-email-periyasa@codeaurora.org
drivers/net/wireless/ath/ath11k/Kconfig
drivers/net/wireless/ath/ath11k/Makefile
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/dbring.c
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/spectral.c [new file with mode: 0644]
drivers/net/wireless/ath/ath11k/spectral.h [new file with mode: 0644]
drivers/net/wireless/ath/ath11k/wmi.c
drivers/net/wireless/ath/ath11k/wmi.h
drivers/net/wireless/ath/spectral_common.h