]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: fix unassigned rssi_level in rtw_sta_info
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Tue, 7 May 2019 02:28:18 +0000 (10:28 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 May 2019 11:30:05 +0000 (14:30 +0300)
commita24bad74737f4c8814e0669d38dba5f2ddb86514
tree23a3d816a991f1bc3b106aa0588a0af488d8934b
parent8a03447dd311da2ad2df74dcf730a1a15f673379
rtw88: fix unassigned rssi_level in rtw_sta_info

The new rssi_level should be stored in si, otherwise the rssi_level will
never be updated and get a wrong RA mask, which is calculated by the
rssi level

If a wrong RA mask is chosen, the firmware will pick some *bad rates*.
The most hurtful scene will be in *noisy environment*, such as office or
public area with many APs and users.
The latency would be high and the overall throughput would be only half
or less.

Tested in 2.4G in office area, with this patch the throughput increased
from such as "1x Mbps -> 4x Mbps".

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/phy.c