wifi: rtw89: fix assignation of TX BD RAM table
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 13 Jan 2023 09:06:31 +0000 (17:06 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 16 Jan 2023 13:38:12 +0000 (15:38 +0200)
commit7f495de6ae7d31f098970fb45a038c9f69b1bf75
tree72960011256e490ca8f6cf574c817fc8c1a7a67f
parent3aa83062c3ec64dd757554a00653cc2d42179f12
wifi: rtw89: fix assignation of TX BD RAM table

TX BD's RAM table describes how HW allocates usable buffer section
for each TX channel at fetch time. The total RAM size for TX BD is
chip-dependent. For 8852BE, it has only half size (32) for TX channels
of single band. Original table arrange total size (64) for dual band.
It will overflow on 8852BE circuit and cause section conflicts between
different TX channels.

So, we do the changes below.
* add another table for single band chip and export both kind of tables
* point to the expected one in rtw89_pci_info by chip

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/20230113090632.60957-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/pci.h
drivers/net/wireless/realtek/rtw89/rtw8852ae.c
drivers/net/wireless/realtek/rtw89/rtw8852be.c
drivers/net/wireless/realtek/rtw89/rtw8852ce.c