wifi: rtw89: mac: define DMA channel mask to avoid unsupported channels
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 27 Sep 2022 06:26:04 +0000 (14:26 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 28 Sep 2022 06:45:57 +0000 (09:45 +0300)
commita1b7163aab4cb5a40d866e40183c52094fad26f9
tree0ca8f25cb710aec0068fa7ec47f700e52c5762a1
parent1bebcf08a3053e92a9e0eb397163faf98dcc8beb
wifi: rtw89: mac: define DMA channel mask to avoid unsupported channels

Six channels are unsupported by 8852b, so mask them out to prevent to
access undefined registers in this chip.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220927062611.30484-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/rtw8852a.c
drivers/net/wireless/realtek/rtw89/rtw8852b.c [new file with mode: 0644]
drivers/net/wireless/realtek/rtw89/rtw8852c.c