Skip to content

Commit e41cd46

Browse files
marcanjannau
authored andcommitted
wifi: brcmfmac: Extend brcmf_wsec_pmk_le
New firmware wants extra fields, hopefully old firmware ignores them. Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 9918be0 commit e41cd46

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • drivers/net/wireless/broadcom/brcm80211/brcmfmac

drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
#define BRCMF_WSEC_MAX_PSK_LEN 32
6868
#define BRCMF_WSEC_PASSPHRASE BIT(0)
6969

70-
#define BRCMF_WSEC_MAX_SAE_PASSWORD_LEN 128
70+
#define BRCMF_WSEC_MAX_SAE_PASSWORD_LEN 256
7171

7272
/* primary (ie tx) key */
7373
#define BRCMF_PRIMARY_KEY (1 << 1)
@@ -611,11 +611,15 @@ struct brcmf_wsec_key_le {
611611
* @key_len: number of octets in key material.
612612
* @flags: key handling qualifiers.
613613
* @key: PMK key material.
614+
* @opt_len: optional field length
615+
* @opt_tlvs: optional fields in TLV format
614616
*/
615617
struct brcmf_wsec_pmk_le {
616618
__le16 key_len;
617619
__le16 flags;
618620
u8 key[BRCMF_WSEC_MAX_SAE_PASSWORD_LEN];
621+
__le16 opt_len;
622+
u8 opt_tlvs[];
619623
};
620624

621625
/**

0 commit comments

Comments
 (0)