wifi: rtw89: add reserved size as factor of DLE used size
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 24 Nov 2023 07:16:58 +0000 (15:16 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 1 Dec 2023 12:39:29 +0000 (14:39 +0200)
commitaabe741e2d18a3a28b0f08c53b7a81374c0690b0
tree9fedf26d1966239b47defcaa39c716c6dc387109
parentcecf1643145a3a5980aff221e7b5ca8f90efa1cf
wifi: rtw89: add reserved size as factor of DLE used size

DLE stands for Double Link Engine that is used to maintain buffer page.
To avoid linking to wrong pages, we check the used page size during
initialization and stop driver probe if the used size is unexpected.

Currently, we check the page size used by PLE (payload engine) and WDE
(WiFi descriptor engine). For coming WiFi 7 chips, additional reserved
size is added for BB as buffer to run LA mode, so add and check the
reserved size as well.

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