qcacmn: Adjust FFT bin size for Spectral report mode 2

On IPQ8074, for report mode 2 only the in-band bins are DMA'ed.
Scatter/gather is used. However, the HW generates all bins, not just
in-band, and reports the number of bins accordingly. The subsystem
arranging for the DMA cannot change this value. The host driver needs
to check if report format is 2, and if so halve the number of bins
reported to get the number actually DMA'ed.

CRs-Fixed: 2218423
Change-Id: Ic0be87422c67110cf3595a4bea71dc872d5b2504
This commit is contained in:
Krishna Rao
2018-04-04 16:42:33 +05:30
committed by nshrivas
szülő 428d34b091
commit 24a08f2ad9
3 fájl változott, egészen pontosan 52 új sor hozzáadva és 11 régi sor törölve

Fájl megtekintése

@@ -1975,10 +1975,13 @@ target_if_pdev_spectral_init(struct wlan_objmgr_pdev *pdev)
/* Set the default values for spectral parameters */
target_if_spectral_init_param_defaults(spectral);
#ifdef CONFIG_WIN
if (target_type == TARGET_TYPE_QCA8074)
if (target_type == TARGET_TYPE_QCA8074) {
spectral->fftbin_size_war = 1;
else
spectral->inband_fftbin_size_adj = 1;
} else {
spectral->fftbin_size_war = 0;
spectral->inband_fftbin_size_adj = 0;
}
if ((target_type == TARGET_TYPE_QCA8074) || (
target_type == TARGET_TYPE_QCA6290)) {
spectral->spectral_gen = SPECTRAL_GEN3;