aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/dev_ioctl.c
diff options
context:
space:
mode:
authorPing-Ke Shih <pkshih@realtek.com>2023-08-01 10:11:27 +0800
committerKalle Valo <kvalo@kernel.org>2023-08-03 15:04:12 +0300
commitdd59c6a32b7189f51947edc5b15939367729dd85 (patch)
treeb781af9e97f332c99b41effb140cf38a097138ad /net/core/dev_ioctl.c
parentwifi: rtw89: add to parse firmware elements of BB and RF tables (diff)
downloadwireguard-linux-dd59c6a32b7189f51947edc5b15939367729dd85.tar.xz
wireguard-linux-dd59c6a32b7189f51947edc5b15939367729dd85.zip
wifi: rtw89: return failure if needed firmware elements are not recognized
WiFi 7 chips doesn't have static const tables defined in driver. If tables aren't loaded properly from firmware file, driver can get NULL pointer access exception. One way is to add the checking statements when trying to access these tables, but I choose to check them right after loading firmware elements from firmware file, so I don't need to add error handlers everywhere. Currently, the needed firmware elements of WiFi 6 chips are all zero, and coming WiFi 7 chip will need at least BB MCU, parameters of BB and RF. We will add them after 8922AE is verified. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230801021127.15919-9-pkshih@realtek.com
Diffstat (limited to 'net/core/dev_ioctl.c')
0 files changed, 0 insertions, 0 deletions