]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:10:51 +0000 (23:10 +0900)
commit6bbdbcef0c7d34f1017c43020c9a6e491a5fd8cd
treeac8fdfc13277f97b3eb76735d74225f9f86e4745
parent837487fa6af6fa46afd73b078413984a3244e228
wifi: rtw89: correct 5 MHz mask setting

commit d33fc8d0368c180fe2338bfae4f5367a66a719f4 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/realtek/rtw89/rtw8852b.c
drivers/net/wireless/realtek/rtw89/rtw8852c.c