]> 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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 Jul 2023 10:16:43 +0000 (12:16 +0200)
commita7b33b0614f592ddd6cb9e2d4b2cd7633192ff85
tree60663465c8e3f584be759393c0f8a2309213a68e
parentb564b2c1171b9dba3f55145c2b370748ab24a234
wifi: rtw89: correct 5 MHz mask setting

BugLink: https://bugs.launchpad.net/bugs/2025067
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/realtek/rtw89/rtw8852b.c
drivers/net/wireless/realtek/rtw89/rtw8852c.c