]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e23504cc56b791bdb7ee2fdba424b361008f897
tree3387491705b276f2d383f8013463a15bbc9c32db
parentac3cfb00765988dd0e1c7c2115c54e945289de3d
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