android_kernel_samsung_sm86.../target_if/spectral
Shiva Krishna Pittala a9948f7e23 qcacmn: Fix fft end bin index for Spectral report modes 0 and 1
For reports modes 0 and 1, the number of FFT bins in a detector will be 0.
We calculate end_bin_idx as start_bin_idx + num_bins - 1.
When start_bin_idx is 0 for these report modes, end_bin_idx will be -1.
Since bin indices are unsigned integers, end_bin_idx becomes a very big
value and we will try to copy unintended large number of bytes.
Fix this by forcing end_bin_idx to start_bin_idx when num_bins is 0.

Change-Id: I11e5dd673fc95a1ce3823ef977fd70c34a4ec67e
CRs-Fixed: 3096955
2022-01-28 00:54:00 -08:00
..
target_if_spectral_netlink.c qcacmn: Add the spectral detector map valid flag per scan mode 2022-01-26 23:23:12 -08:00
target_if_spectral_phyerr.c qcacmn: Fix fft end bin index for Spectral report modes 0 and 1 2022-01-28 00:54:00 -08:00
target_if_spectral_sim_int.h qcacmn: Handle 80p80 and 160 MHz separately 2020-03-16 08:05:34 -07:00
target_if_spectral_sim.c qcacmn: Gets vdev by id in spectral component 2020-07-24 02:01:08 -07:00
target_if_spectral_sim.h qcacmn: Gets vdev by id in spectral component 2020-07-24 02:01:08 -07:00
target_if_spectral.c qcacmn: Add the spectral detector map valid flag per scan mode 2022-01-26 23:23:12 -08:00
target_if_spectral.h qcacmn: Add the spectral detector map valid flag per scan mode 2022-01-26 23:23:12 -08:00