]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: fw: shrink download size of security section for RTL8852B
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 30 Oct 2024 02:21:31 +0000 (10:21 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 6 Nov 2024 05:58:35 +0000 (13:58 +0800)
commit40c06adf63d00e8249b6e353d03212d0c661c441
treedad868c9a65097ca5c4339672da1043519b278d7
parente1551a79c499324cb0ba398e5dff3a85c637db3f
wifi: rtw89: fw: shrink download size of security section for RTL8852B

For RTL8852B, when current firmware is secure boot, the security section
needs a special treatment that shrink its size to 960.

As figure below, not only shrink the amount of download size of security
section (2), but also need to modify the section size in firmware header
(1) that is also downloaded to chip.

   +---------------------------+
   |      firmware header      |
   |                           |
   | +-----------------------+ |
   | | section type, size N -|-|-------+
   | | ...               (1) | |       |
   | +-----------------------+ |       |
   +---------------------------+       | 2048 shrink to 960
   :                           :       |
   +---------------------------+ -\    |
   |  security section type 9  |  |    |
   |           (2)             |  | <--+
   |                           |  |
   +---------------------------+ -/

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241030022135.11688-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h