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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user