wifi: rtw89: fw: implement MCC related H2C
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 29 Nov 2022 08:31:29 +0000 (16:31 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 1 Dec 2022 11:04:27 +0000 (13:04 +0200)
commitc008c4b011baa26b9545f7be10e746c97409d45b
tree71673e5c9a82996c09b5799fc023ef02ecf83fc1
parentef9dff4cb491210518ad3d249919a0971eff601b
wifi: rtw89: fw: implement MCC related H2C

These MCC H2C(s) require to wait for MCC C2H to determine if the
execution is successful. Through rtw89_wait_for_cond(), we make
them wait for either a completion with data from MCC C2H handlers,
which calls rtw89_complete_cond(), or timeout.

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/20221129083130.45708-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h