Skip to content

Commit d8bcf18

Browse files
author
CKI Backport Bot
committed
wifi: rtw89: fw: scan offload prohibit all 6 GHz channel if no 6 GHz sband
JIRA: https://issues.redhat.com/browse/RHEL-51809 CVE: CVE-2024-42125 commit bb38626 Author: Zong-Zhe Yang <kevin_yang@realtek.com> Date: Fri Apr 12 19:57:23 2024 +0800 wifi: rtw89: fw: scan offload prohibit all 6 GHz channel if no 6 GHz sband We have some policy via BIOS to block uses of 6 GHz. In this case, 6 GHz sband will be NULL even if it is WiFi 7 chip. So, add NULL handling here to avoid crash. Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://msgid.link/20240412115729.8316-3-pkshih@realtek.com Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>
1 parent ffa09cd commit d8bcf18

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/wireless/realtek/rtw89

1 file changed

+4
-0
lines changed

drivers/net/wireless/realtek/rtw89/fw.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4631,6 +4631,10 @@ static void rtw89_scan_get_6g_disabled_chan(struct rtw89_dev *rtwdev,
46314631
u8 i, idx;
46324632

46334633
sband = rtwdev->hw->wiphy->bands[NL80211_BAND_6GHZ];
4634+
if (!sband) {
4635+
option->prohib_chan = U64_MAX;
4636+
return;
4637+
}
46344638

46354639
for (i = 0; i < sband->n_channels; i++) {
46364640
chan = &sband->channels[i];

0 commit comments

Comments
 (0)