rtl8xxxu: fill up txrate info for gen1 chips
authorChris Chiu <chris.chiu@canonical.com>
Fri, 25 Mar 2022 03:57:35 +0000 (11:57 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 6 Apr 2022 12:12:47 +0000 (15:12 +0300)
commitbd917b3d28c9815e2c55b9ff16680fdc2ba28d68
tree3387491705b276f2d383f8013463a15bbc9c32db
parent21338c5bdeb969bfb2d78bd06a71a40b9a82a51e
rtl8xxxu: fill up txrate info for gen1 chips

RTL8188CUS/RTL8192CU(gen1) don't support rate adaptive report hence
no real txrate info can be retrieved. The vendor driver reports the
highest rate in HT capabilities from the IEs to avoid empty txrate.
This commit initiates the txrate information with the highest supported
rate negotiated with AP. The gen2 chip keeps update the txrate from
the rate adaptive reports, and gen1 chips at least have non-NULL txrate
after associated.

Signed-off-by: Chris Chiu <chris.chiu@canonical.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220325035735.4745-3-chris.chiu@canonical.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c