Skip to content

Commit 9faff37

Browse files
committed
wifi: brcmfmac: Extend brcmf_wsec_pmk_le
New firmware wants extra fields, hopefully old firmware ignores them. Signed-off-by: Hector Martin <[email protected]>
1 parent cc32ae6 commit 9faff37

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)
@@ -606,11 +606,15 @@ struct brcmf_wsec_key_le {
606606
* @key_len: number of octets in key material.
607607
* @flags: key handling qualifiers.
608608
* @key: PMK key material.
609+
* @opt_len: optional field length
610+
* @opt_tlvs: optional fields in TLV format
609611
*/
610612
struct brcmf_wsec_pmk_le {
611613
__le16 key_len;
612614
__le16 flags;
613615
u8 key[BRCMF_WSEC_MAX_SAE_PASSWORD_LEN];
616+
__le16 opt_len;
617+
u8 opt_tlvs[];
614618
};
615619

616620
/**

0 commit comments

Comments
 (0)