Thread (117 messages) 117 messages, 5 authors, 2022-01-31

Re: [PATCH v2 26/35] brcmfmac: cfg80211: Pass the PMK in binary instead of hex

From: Arend van Spriel <arend.vanspriel@broadcom.com>
Date: 2022-01-21 07:36:08
Also in: linux-acpi, linux-devicetree, linux-wireless, lkml

On 1/4/2022 8:26 AM, Hector Martin wrote:
Apparently the hex passphrase mechanism does not work on newer
chips/firmware (e.g. BCM4387). It seems there was a simple way of
passing it in binary all along, so use that and avoid the hexification.

OpenBSD has been doing it like this from the beginning, so this should
work on all chips.

Also clear the structure before setting the PMK. This was leaking
uninitialized stack contents to the device.

Reviewed-by: Linus Walleij <redacted>
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Hector Martin <redacted>
---
  .../wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 13 +++++++------
  1 file changed, 7 insertions(+), 6 deletions(-)

Attachments

  • smime.p7s [application/pkcs7-signature] 4219 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help