wifi: rtw89: use struct instead of macros to set H2C command of hardware scan
authorPing-Ke Shih <pkshih@realtek.com>
Sat, 15 Apr 2023 03:48:57 +0000 (11:48 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 17 Apr 2023 09:49:52 +0000 (12:49 +0300)
commit8b048bd5ddf700c72734c4a2a79ecdf082273edb
treebb06348d3a73c49cfb9c42c6aae000a829d332c3
parente7399db231d07f1e5a4179f100ccd0106fdbee03
wifi: rtw89: use struct instead of macros to set H2C command of hardware scan

Remove macros that set H2C data. Instead, use struct and
le32_encode_bits() with mask definition to make it clean.

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