mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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:
parent
61a090c1d5
commit
1f91a239b6
1 changed files with 8 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue