]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: rtw89: correct 5 MHz mask setting
authorEric Huang <echuang@realtek.com>
Thu, 6 Apr 2023 07:28:41 +0000 (15:28 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 14 Apr 2023 12:25:03 +0000 (15:25 +0300)
commitd33fc8d0368c180fe2338bfae4f5367a66a719f4
tree7fe95e30340c1f495d478521d434d34e3cfd6d89
parent8c36cf0df434e17c9c39a42f87319a6aaca89b05
wifi: rtw89: correct 5 MHz mask setting

Use primary channel index to determine which 5 MHz mask should be enable.
This mask is used to prevent noise from channel edge to effect CCA
threshold in wide bandwidth (>= 40 MHZ).

Fixes: 1b00e9236a71 ("rtw89: 8852c: add set channel of BB part")
Fixes: 6b0698984eb0 ("wifi: rtw89: 8852b: add chip_ops::set_channel")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Huang <echuang@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/20230406072841.8308-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852b.c
drivers/net/wireless/realtek/rtw89/rtw8852c.c