To have better user experience, we mask out some rates depends on RSSI and operating mode. Somehow, AP can possibly support partial rates, and then we may get empty rate set. To avoid this, recover the supported rates of sta if we fall into this situation. Since rtw88 and rtw89 have the same issue, I send them together. Chien-Hsun Liao (2): rtw88: recover rates of rate adaptive mechanism rtw89: recover rates of rate adaptive mechanism drivers/net/wireless/realtek/rtw88/main.c | 67 +++++++++++++++-------- drivers/net/wireless/realtek/rtw89/phy.c | 47 ++++++++++------ 2 files changed, 74 insertions(+), 40 deletions(-) -- 2.25.1