wifi: rtw89: fw: scan offload prohibit all 6 GHz channel if no 6 GHz sband
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 12 Apr 2024 11:57:23 +0000 (19:57 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 18 Apr 2024 01:09:16 +0000 (09:09 +0800)
commitbb38626f3f97e16e6d368a9ff6daf320f3fe31d9
tree33fd866a3fe51d991746e7914d4b82c59d63a04e
parentdf0fa9d0d23ac7516d6baca5fecab21e539d00ec
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
drivers/net/wireless/realtek/rtw89/fw.c