wifi: rtw89: use struct to access firmware C2H event header
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 28 Jul 2023 07:02:48 +0000 (15:02 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Aug 2023 14:44:36 +0000 (17:44 +0300)
commitc342ac2195161611b51927eefab18879155b110e
tree23e9f9c62f91cf3958d9326bc59f8e5325b722e2
parentc97683ff01a47d0dcd7092c5e7d39685910262a1
wifi: rtw89: use struct to access firmware C2H event header

Firmware C2H events contain two-word header which can indicate category,
class, function and length of received events. Use struct to access them,
and doesn't 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/20230728070252.66525-7-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h