1 // SPDX-License-Identifier: ISC
2 /*
3  * Copyright (c) 2022 Broadcom Corporation
4  */
5 #include <linux/errno.h>
6 #include <linux/types.h>
7 #include <core.h>
8 #include <bus.h>
9 #include <fwvid.h>
10 #include <cfg80211.h>
11 
12 #include "vops.h"
13 
14 static int brcmf_wcc_set_sae_pwd(struct brcmf_if *ifp,
15 				 struct cfg80211_crypto_settings *crypto)
16 {
17 	return brcmf_set_wsec(ifp, crypto->sae_pwd, crypto->sae_pwd_len,
18 			      BRCMF_WSEC_PASSPHRASE);
19 }
20 
21 const struct brcmf_fwvid_ops brcmf_wcc_ops = {
22 	.set_sae_password = brcmf_wcc_set_sae_pwd,
23 };
24