wifi: rtw89: use u32_get_bits to access C2H content of PHY capability
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 8 Sep 2022 07:41:36 +0000 (15:41 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 12 Sep 2022 11:51:43 +0000 (14:51 +0300)
commitc7ad08c60163a338e0fb59bbfe51a127fe00dd69
treea55c0e6e089c03618599c864be072e009e7e5fac
parent8f15a8d6786c031b230e46077acbe1e07fabb5ce
wifi: rtw89: use u32_get_bits to access C2H content of PHY capability

The definitions of bit fields in structure will be wrong in big-endian
platform, so use u32_get_bits() to access them.

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