]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rtw89: recover rates of rate adaptive mechanism
authorChien-Hsun Liao <ben.liao@realtek.com>
Tue, 8 Feb 2022 08:24:27 +0000 (16:24 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 10 Feb 2022 08:44:44 +0000 (10:44 +0200)
commit3c2c2e2ec1d64116c43ff3660579f99e8654cfe2
tree9df3638223f6926c2fd65a34ca3b309997310e6b
parent9eb071f844964bf1bab26b9147979f97c2f39725
rtw89: recover rates of rate adaptive mechanism

Some APs like CMW270 only support one phyrate and the function
rtw89_phy_ra_mask_rssi could disable that rate. To fix such problem, we
restore the rate mask if we find that the rate_mask is empty.
Also, apply missed legacy rates from sta->supp_rates[].

Signed-off-by: Chien-Hsun Liao <ben.liao@realtek.com>
Signed-off-by: Kuan-Chung Chen <damon.chen@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220208082427.42433-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.c