rtw88: recover rates of rate adaptive mechanism
authorChien-Hsun Liao <ben.liao@realtek.com>
Tue, 8 Feb 2022 08:24:26 +0000 (16:24 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 10 Feb 2022 08:44:44 +0000 (10:44 +0200)
commit9eb071f844964bf1bab26b9147979f97c2f39725
tree6e00d112071c8b4118e52fb3c8223b1fe10aca92
parentb478ff6bcb2d052cddb94d8044727ac932e9f05b
rtw88: recover rates of rate adaptive mechanism

Some APs like CMW270 only support one phyrate and the function
rtw_update_rate_mask could disable that rate. To fix such problem, we
restore the rate mask if we find that the rate_mask is empty.

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-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/main.c