wifi: rtw89: fw: generalize download firmware flow by mac_gen pointers
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 1 Sep 2023 07:39:50 +0000 (15:39 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 7 Sep 2023 05:57:15 +0000 (08:57 +0300)
commitae4dc23d139c7307a0bdd72321913da4eb5f4a85
tree9cfd0658eccb3117c059fb176633b4ed3f466016
parent80e706a85cb5e1e2121e9bf09dd4098415d85142
wifi: rtw89: fw: generalize download firmware flow by mac_gen pointers

In order to reuse the flow to download firmware, define some mac_gen::ops
to implement them for WiFi 6 and 7 chips individually. This doesn't change
logic at all.

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