qcacmn: Add WAR to process Gen3 Spectral report mode 1

Add Gen3 Spectral host WAR to remove NULL FFT bins for report mode (1)
in which only summary of metrics for each completed FFT + spectral
scan summary report are to be provided. This would be required on some
Gen3 chipsets (starting with IPQ8074) under the following
circumstances: In report mode 1, HW reports a length corresponding to
all bins, and provides bins with value 0. This is because the
subsystem arranging for the FFT information does not arrange for DMA
of FFT bin values (as expected), but cannot arrange for a smaller
length to be reported by HW. In these circumstances, the host driver
would have to disregard the NULL bins and report a bin count of 0 to
higher layers.

Change-Id: If5fb72805dc80ada0ab617b4b1c2cc9ea497bcf8
CRs-Fixed: 2300251
Цей коміт міститься в:
Krishna Rao
2018-08-22 19:40:11 +05:30
зафіксовано nshrivas
джерело c80456220e
коміт e4de76596e
3 змінених файлів з 93 додано та 32 видалено

Переглянути файл

@@ -2010,10 +2010,13 @@ target_if_pdev_spectral_init(struct wlan_objmgr_pdev *pdev)
(target_type == TARGET_TYPE_QCA8074V2)) {
spectral->fftbin_size_war = 1;
spectral->inband_fftbin_size_adj = 1;
spectral->null_fftbin_adj = 1;
} else {
spectral->fftbin_size_war = 0;
spectral->inband_fftbin_size_adj = 0;
spectral->null_fftbin_adj = 0;
}
if ((target_type == TARGET_TYPE_QCA8074) ||
(target_type == TARGET_TYPE_QCA8074V2) ||
(target_type == TARGET_TYPE_QCA6290)) {