OSDN Git Service

wifi: rtw89: use struct to set RA H2C command
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 28 Jul 2023 07:02:46 +0000 (15:02 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Aug 2023 14:44:35 +0000 (17:44 +0300)
commit401b0c161b09682aa633aa7e2cf996a26a67f46c
tree0728236a65f8d0939921fc26feb6a60b46f02415
parent2ef14155c29b69c40350ee845a8dc051283e1ac2
wifi: rtw89: use struct to set RA H2C command

RA (rate adaptive) H2C command is used to tell firmware which rates can
be used for specified MAC ID. Basically, this commit doesn't change result.
Only change to set two 32-bit instead of continual 8-byte rate masks one
by one. Originally, we only set 5-byte masks, because existing WiFi 6
2SS chips only need 5-byte masks. Setting two 32-bit masks will be more
efficient and also can support coming WiFi 7 2SS chips containing more
rates.

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