wifi: rtl8xxxu: Introduce rtl8xxxu_update_ra_report
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Thu, 1 Dec 2022 14:16:46 +0000 (16:16 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 8 Dec 2022 14:45:16 +0000 (16:45 +0200)
commit7de16123d9e230d4aff17a466eac820645c8a796
tree87abf42413b4bfd479fa937314d1563c5351f3a4
parent76c16af2cb10282274596e21add2c9f0b95c941b
wifi: rtl8xxxu: Introduce rtl8xxxu_update_ra_report

The ra_report struct is used for reporting the TX rate via
sta_statistics. The code which fills it out is duplicated in two
places, and the RTL8188EU will need it in a third place. Move this
code into a new function rtl8xxxu_update_ra_report.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/0777ad35-fe03-473c-2e02-e3390bef5dd0@gmail.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c