wifi: rtw89: drop invalid TX rate report of legacy rate
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 10 Jun 2022 07:26:07 +0000 (15:26 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 21 Jun 2022 06:15:48 +0000 (09:15 +0300)
commit9a3a593cba9a6743022ab742c01b06280e8a288a
treec35649400394fa4a2c10023b9fb0d24ae7be6dc7
parentad663693c1bf148bdc84a29bcebfe9eb4dc812c4
wifi: rtw89: drop invalid TX rate report of legacy rate

Somehow, firmware could report invalid TX rate, and we consider the
invalid rate as 0 that will make a wrong decision. So, drop invalid
reports, and also suppress the warning message.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220610072610.27095-9-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/phy.c