wifi: rtw89: fw: adapt to new firmware format of dynamic header
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 20 Oct 2022 05:25:49 +0000 (13:25 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Nov 2022 09:23:37 +0000 (11:23 +0200)
commit4feda7f317cb7e4b6fcdaffb0d1ad363ee28fdea
tree246c87240e363014e0c26f1cc67e4bb6300a4b91
parenta9501019f2de706eb43b59d66dcde70a23440cd3
wifi: rtw89: fw: adapt to new firmware format of dynamic header

Since firmware size is limited, we create variant firmwares for variant
application areas. To help driver to know firmware's capabilities, firmware
dynamic header is introduced to have more information, such as firmware
features and firmware compile flags.

Since this driver rtw89 only uses single one specific firmware at runtime,
this patch is just to ignore this dynamic header, not actually use the
content.

This patch can be backward compatible, and no this kind of firmware is
added to linux-firmware yet, so I can prepare this in advance.

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