android_kernel_xiaomi_sm8350/core/hdd
Sourav Mohapatra d204a81b4b qcacld-3.0: Populate proper rates received by FW
Due to unknown legacy reason, the rates received by the driver from the
firmware are currently divided by 500 to convert it into units of
500kbps. This division by 500 is later compensated by a multiplication
with 5 to maintain units of 100kbps before being sent to the upper
layer. This division and then subsequent multiplication results in the
loss of precision (in the case the rate is not divisible by 5).
Consequently, the rate being sent to the upper layer becomes inaccurate.
Also the calculation of the MCS rate flags is affected.

Do not carry out the unnecessary division and multiplication by 5.
Instead just convert the rates into units of 100kbps (which is as
mandated by the kernel) when driver receives the rate from the firmware.

Change-Id: I05e67816651754e3b3e27b13dabc1d55b29251dd
CRs-Fixed: 2378166
2019-01-11 18:07:58 -08:00
..
inc qcacld-3.0: Refactor MTRACE CFG item 2019-01-11 15:58:16 -08:00
src qcacld-3.0: Populate proper rates received by FW 2019-01-11 18:07:58 -08:00