]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: brcmfmac: pcie: Provide a buffer of random bytes to the device
authorHector Martin <marcan@marcan.st>
Tue, 14 Feb 2023 08:00:34 +0000 (17:00 +0900)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 9 Aug 2023 09:37:55 +0000 (11:37 +0200)
commitb456d1c5e084a653f16323141530ec222288756f
tree542534bef9356c373c04cd06cb1bef3355eedb41
parent622b4fdeb823add86962ef873561dc3a173e8fc0
wifi: brcmfmac: pcie: Provide a buffer of random bytes to the device

BugLink: https://bugs.launchpad.net/bugs/2028808
[ Upstream commit 91918ce88d9fef408bb12c46a27c73d79b604c20 ]

Newer Apple firmwares on chipsets without a hardware RNG require the
host to provide a buffer of 256 random bytes to the device on
initialization. This buffer is present immediately before NVRAM,
suffixed by a footer containing a magic number and the buffer length.

This won't affect chips/firmwares that do not use this feature, so do it
unconditionally for all Apple platforms (those with an Apple OTP).

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230214080034.3828-3-marcan@marcan.st
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c