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
This commit is contained in:
Ping-Ke Shih 2023-04-15 11:48:57 +08:00 • committed by Kalle Valo
commit 8b048bd5dd
2 changed files with 51 additions and 108 deletions