wifi: rtw89: fw: use generic flow to set/check features
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 20 Mar 2023 13:06:04 +0000 (21:06 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 14 Apr 2023 12:13:58 +0000 (15:13 +0300)
commit639ec6d63588b7e7c2dfae1df447daf243fb8342
treeb55ec06964a5c38e689bcd97df6df348fbbf1713
parentc5280e5f6763c216e16feec10c63b6b32106ddb7
wifi: rtw89: fw: use generic flow to set/check features

In early feature bitmap obtained from rtw89_early_fw_feature_recognize(),
the bits needed to check get increased. It's more friendly to work with
RTW89_CHK_FW_FEATURE(). So, we concentrate the flow of iterating FW feature
configures and calling RTW89_SET_FW_FEATURE() for various uses. And then,
we adjust rtw89_early_fw_feature_recognize() for RTW89_CHK_FW_FEATURE().

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