linux-xiaomi-chiron/drivers/net/wireless/broadcom/brcm80211/brcmfmac
Jason A. Donenfeld f743f16c54 treewide: use get_random_{u8,u16}() when possible, part 2
Rather than truncate a 32-bit value to a 16-bit value or an 8-bit value,
simply use the get_random_{u8,u16}() functions, which are faster than
wasting the additional bytes from a 32-bit value. This was done by hand,
identifying all of the places where one of the random integer functions
was used in a non-32-bit context.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Heiko Carstens <hca@linux.ibm.com> # for s390
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-10-11 17:42:58 -06:00
..
bcdc.c brcmfmac: increase dcmd maximum buffer size 2022-09-27 09:09:07 +03:00
bcdc.h Revert "brcmfmac: fix NULL pointer derefence during USB disconnect" 2019-07-24 14:51:21 +03:00
bcmsdh.c wifi: brcmfmac: add 43439 SDIO ids and initialization 2022-09-07 11:01:15 +03:00
btcoex.c brcmfmac: btcoex: Update 'brcmf_btcoex_state' and demote others 2020-09-01 12:22:37 +03:00
btcoex.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
bus.h wifi: brcmfmac: pcie/sdio/usb: Get CLM blob via standard firmware mechanism 2022-09-19 12:59:33 +03:00
cfg80211.c brcmfmac: Remove the call to "dtim_assoc" IOVAR 2022-09-27 09:09:07 +03:00
cfg80211.h brcmfmac: add support for CQM RSSI notifications 2021-02-09 09:57:02 +02:00
chip.c brcmfmac: Support 89459 pcie 2022-09-27 09:09:06 +03:00
chip.h brcmfmac: support chipsets with different core enumeration space 2021-08-21 18:49:05 +03:00
common.c wifi: brcmfmac: pcie/sdio/usb: Get CLM blob via standard firmware mechanism 2022-09-19 12:59:33 +03:00
common.h wifi: brcmfmac: of: Fetch Apple properties 2022-09-19 12:59:34 +03:00
commonring.c brcm80211: remove redundant pointer 'address' 2020-04-14 18:04:55 +03:00
commonring.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
core.c wifi: brcmfmac: fix use-after-free bug in brcmf_netdev_start_xmit() 2022-09-07 10:57:10 +03:00
core.h wireless: brcmfmac: Use netif_rx(). 2022-03-06 11:05:31 +00:00
debug.c brcmfmac: no need to check return value of debugfs_create functions 2020-05-04 12:50:13 +03:00
debug.h brcmfmac: Silence error messages about unsupported firmware features 2021-06-23 20:44:25 +03:00
dmi.c wifi: brcmfmac: Add DMI nvram filename quirk for Chuwi Hi8 Pro tablet 2022-09-07 10:58:46 +03:00
feature.c wifi: brcmfmac: add 43439 SDIO ids and initialization 2022-09-07 11:01:15 +03:00
feature.h brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK in AP mode 2020-09-16 08:56:04 +03:00
firmware.c wifi: brcmfmac: firmware: Allow platform to override macaddr 2022-09-19 12:59:34 +03:00
firmware.h wifi: brcmfmac: firmware: Support passing in multiple board_types 2022-09-19 12:59:33 +03:00
flowring.c wifi: brcmfmac: fix scheduling while atomic issue when deleting flowring 2022-08-10 08:47:22 +03:00
flowring.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
fweh.c brcmfmac: fweh: Add missing description for 'gfp' 2020-11-07 18:04:07 +02:00
fweh.h net: brcmfmac: Convey allocation mode as argument 2020-09-29 14:02:55 -07:00
fwil.c brcmfmac: fwil: Constify iovar name arguments 2022-02-01 14:27:07 +02:00
fwil.h brcmfmac: fwil: Constify iovar name arguments 2022-02-01 14:27:07 +02:00
fwil_types.h brcmfmac: increase default max WOWL patterns to 16 2022-09-27 09:09:06 +03:00
fwsignal.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
fwsignal.h wifi: brcmfmac: Fix to add skb free for TIM update info when tx is completed 2022-08-10 08:47:22 +03:00
Kconfig brcmfmac: use separate Kconfig file for brcmfmac 2019-05-28 15:24:13 +03:00
Makefile brcmfmac: add xtlv support to firmware interface layer 2021-08-21 18:49:04 +03:00
msgbuf.c wifi: brcmfmac: fix scheduling while atomic issue when deleting flowring 2022-08-10 08:47:22 +03:00
msgbuf.h wifi: brcmfmac: msgbuf: Increase RX ring sizes to 1024 2022-09-19 12:59:34 +03:00
of.c wifi: brcmfmac: of: Fetch Apple properties 2022-09-19 12:59:34 +03:00
of.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
p2p.c treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
p2p.h brcmfmac: support the second p2p connection 2020-05-06 11:39:17 +03:00
pcie.c brcmfmac: Support 89459 pcie 2022-09-27 09:09:06 +03:00
pcie.h brcmfmac: properly check for bus register errors 2021-05-13 18:58:42 +02:00
pno.c treewide: use get_random_{u8,u16}() when possible, part 2 2022-10-11 17:42:58 -06:00
pno.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
proto.c Revert "brcmfmac: fix NULL pointer derefence during USB disconnect" 2019-07-24 14:51:21 +03:00
proto.h wireless: brcmfmac: Use netif_rx(). 2022-03-06 11:05:31 +00:00
sdio.c wifi: brcmfmac: firmware: Support passing in multiple board_types 2022-09-19 12:59:33 +03:00
sdio.h wifi: brcmfmac: pcie/sdio/usb: Get CLM blob via standard firmware mechanism 2022-09-19 12:59:33 +03:00
tracepoint.c brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
tracepoint.h tracing/brcm: Use the new __vstring() helper 2022-07-15 17:44:40 -04:00
usb.c wifi: brcmfmac: pcie/sdio/usb: Get CLM blob via standard firmware mechanism 2022-09-19 12:59:33 +03:00
usb.h brcmfmac: A typo fix 2021-04-18 09:28:21 +03:00
vendor.c wireless: fix nl80211 vendor commands 2019-07-20 21:37:26 +02:00
vendor.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
xtlv.c include/linux/unaligned: replace kernel.h with the necessary inclusions 2022-01-20 08:52:53 +02:00
xtlv.h brcmfmac: Replace zero-length arrays with flexible-array members 2022-02-21 10:59:35 +02:00