qcacmn: Add fft bin size WAR check
Add the fft bin size WAR check in spectral report processing routine. CRs-fixed: 2300341 Change-Id: I662fb469cb3716287663bc6d94d4adccb01a83c4
This commit is contained in:

committad av
nshrivas

förälder
61a090c1d5
incheckning
1f91a239b6
@@ -1406,7 +1406,10 @@ target_if_consume_spectral_report_gen3(
|
||||
report_len = (fft_hdr_length + 8);
|
||||
|
||||
fft_bin_len = (fft_hdr_length - 16);
|
||||
fft_bin_len >>= 2;
|
||||
/* Divide fft bin length by 4 if fftbin_size_war is enabled */
|
||||
if (spectral->fftbin_size_war) {
|
||||
fft_bin_len >>= 2;
|
||||
}
|
||||
if ((spectral->params.ss_rpt_mode == 2) &&
|
||||
spectral->inband_fftbin_size_adj) {
|
||||
fft_bin_len >>= 1;
|
||||
@@ -1526,7 +1529,10 @@ target_if_consume_spectral_report_gen3(
|
||||
report_len = (fft_hdr_length + 8);
|
||||
|
||||
fft_bin_len = (fft_hdr_length - 16);
|
||||
fft_bin_len >>= 2;
|
||||
/* Divide fft bin length by 4 if fftbin_size_war is enabled */
|
||||
if (spectral->fftbin_size_war) {
|
||||
fft_bin_len >>= 2;
|
||||
}
|
||||
if ((spectral->params.ss_rpt_mode == 2) &&
|
||||
spectral->inband_fftbin_size_adj) {
|
||||
fft_bin_len >>= 1;
|
||||
|
Referens i nytt ärende
Block a user