wifi: rtw89: use struct and le32_get_bits() to access RX descriptor
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 22 May 2023 12:25:12 +0000 (20:25 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 25 May 2023 16:13:14 +0000 (19:13 +0300)
commitc26700d2df01d084ee904ca872fd4db67e772c6f
tree4b7f5feed083232e73ff7f7476c913726da9aeb4
parent332debb80488e98f6083238bdf61e6f953d5c180
wifi: rtw89: use struct and le32_get_bits() to access RX descriptor

RX descriptor is to provide basic and important information related to
packets, such as packet size, security, MAC ID and so on. Change to use
struct to access these fields, and not change logic at all.

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