Home
last modified time | relevance | path

Searched refs:crypto_key (Results 1 – 14 of 14) sorted by relevance

/wlan-driver/qca-wifi-host-cmn/os_if/linux/crypto/src/
H A Dwlan_cfg80211_crypto.c41 struct wlan_crypto_key *crypto_key) in wlan_cfg80211_translate_ml_sta_key() argument
43 qdf_mem_zero(crypto_key, sizeof(*crypto_key)); in wlan_cfg80211_translate_ml_sta_key()
44 crypto_key->keylen = params->key_len; in wlan_cfg80211_translate_ml_sta_key()
45 crypto_key->keyix = key_index; in wlan_cfg80211_translate_ml_sta_key()
49 qdf_mem_copy(&crypto_key->keyval[0], params->key, params->key_len); in wlan_cfg80211_translate_ml_sta_key()
50 qdf_mem_copy(&crypto_key->keyrsc[0], params->seq, params->seq_len); in wlan_cfg80211_translate_ml_sta_key()
52 crypto_key->key_type = key_type; in wlan_cfg80211_translate_ml_sta_key()
53 crypto_key->cipher_type = osif_nl_to_crypto_cipher_type(params->cipher); in wlan_cfg80211_translate_ml_sta_key()
55 if (IS_WEP_CIPHER(crypto_key->cipher_type) && !mac_addr) { in wlan_cfg80211_translate_ml_sta_key()
65 qdf_mem_copy(&crypto_key->macaddr, mac_addr, in wlan_cfg80211_translate_ml_sta_key()
[all …]
/wlan-driver/qcacld-3.0/core/hdd/src/
H A Dwlan_hdd_wifi_pos_pasn.c197 struct wlan_crypto_key *crypto_key; in wlan_cfg80211_set_pasn_key() local
217 crypto_key = qdf_mem_malloc(sizeof(*crypto_key)); in wlan_cfg80211_set_pasn_key()
218 if (!crypto_key) { in wlan_cfg80211_set_pasn_key()
225 qdf_mem_free(crypto_key); in wlan_cfg80211_set_pasn_key()
231 crypto_key->cipher_type = osif_nl_to_crypto_cipher_type(cipher); in wlan_cfg80211_set_pasn_key()
234 crypto_key->keylen = in wlan_cfg80211_set_pasn_key()
236 if (cipher_len < 0 || crypto_key->keylen < cipher_len || in wlan_cfg80211_set_pasn_key()
237 (crypto_key->keylen > in wlan_cfg80211_set_pasn_key()
239 hdd_err_rl("Invalid key length %d", crypto_key->keylen); in wlan_cfg80211_set_pasn_key()
241 qdf_mem_free(crypto_key); in wlan_cfg80211_set_pasn_key()
[all …]
H A Dwlan_hdd_hostapd.c1799 struct wlan_crypto_key *crypto_key; in hdd_hostapd_set_sap_key() local
1803 crypto_key = wlan_crypto_get_key(adapter->deflink->vdev, in hdd_hostapd_set_sap_key()
1805 if (!crypto_key) in hdd_hostapd_set_sap_key()
1809 ucfg_crypto_set_key_req(adapter->deflink->vdev, crypto_key, in hdd_hostapd_set_sap_key()
1812 crypto_key->cipher_type); in hdd_hostapd_set_sap_key()
H A Dwlan_hdd_cfg80211.c25057 struct wlan_crypto_key *crypto_key; in __wlan_hdd_cfg80211_set_default_key() local
25094 crypto_key = wlan_crypto_get_key(vdev, key_index); in __wlan_hdd_cfg80211_set_default_key()
25095 if (!crypto_key) { in __wlan_hdd_cfg80211_set_default_key()
25101 unicast, multicast, crypto_key->cipher_type); in __wlan_hdd_cfg80211_set_default_key()
25102 if (!IS_WEP_CIPHER(crypto_key->cipher_type)) { in __wlan_hdd_cfg80211_set_default_key()
25116 key_index, crypto_key->cipher_type); in __wlan_hdd_cfg80211_set_default_key()
/wlan-driver/qca-wifi-host-cmn/umac/cmn_services/crypto/src/
H A Dwlan_crypto_obj_mgr.c226 struct wlan_crypto_key *crypto_key, in crypto_add_entry() argument
262 crypto_entry->keys.key[key_index] = crypto_key; in crypto_add_entry()
265 crypto_key; in crypto_add_entry()
268 crypto_entry->keys.igtk_key_type = crypto_key->cipher_type; in crypto_add_entry()
271 - WLAN_CRYPTO_MAXIGTKKEYIDX] = crypto_key; in crypto_add_entry()
602 void wlan_crypto_free_key(struct wlan_crypto_keys *crypto_key) in wlan_crypto_free_key() argument
606 if (!crypto_key) { in wlan_crypto_free_key()
612 if (crypto_key->key[i]) { in wlan_crypto_free_key()
613 qdf_mem_free(crypto_key->key[i]); in wlan_crypto_free_key()
614 crypto_key->key[i] = NULL; in wlan_crypto_free_key()
[all …]
H A Dwlan_crypto_global_api.c746 crypto_priv->crypto_key.def_tx_keyid = kid; in wlan_crypto_store_def_keyix()
866 priv_key = &crypto_priv->crypto_key; in wlan_crypto_setkey()
869 struct wlan_crypto_key *crypto_key = NULL; in wlan_crypto_setkey() local
885 crypto_key = priv_key->igtk_key[igtk_idx]; in wlan_crypto_setkey()
886 if (crypto_key) in wlan_crypto_setkey()
887 qdf_mem_free(crypto_key); in wlan_crypto_setkey()
894 crypto_key = priv_key->bigtk_key[bigtk_idx]; in wlan_crypto_setkey()
895 if (crypto_key) in wlan_crypto_setkey()
896 qdf_mem_free(crypto_key); in wlan_crypto_setkey()
970 priv_key = &crypto_priv->crypto_key; in wlan_crypto_setkey()
[all …]
H A Dwlan_crypto_def_i.h409 struct wlan_crypto_keys crypto_key; member
594 struct wlan_crypto_key *crypto_key,
/wlan-driver/qca-wifi-host-cmn/umac/mlme/connection_mgr/core/src/
H A Dwlan_cm_util.c180 struct wlan_crypto_key *crypto_key; in cm_set_key() local
187 crypto_key = wlan_crypto_get_key(cm_ctx->vdev, wep_key_idx); in cm_set_key()
188 qdf_mem_copy(crypto_key->macaddr, bssid->bytes, in cm_set_key()
191 crypto_key = wlan_crypto_get_key(cm_ctx->vdev, key_idx); in cm_set_key()
194 return wlan_crypto_set_key_req(cm_ctx->vdev, crypto_key, (unicast ? in cm_set_key()
223 struct wlan_crypto_key *crypto_key = NULL; in cm_store_wep_key() local
248 crypto_key = wlan_crypto_get_key(cm_ctx->vdev, wep_keys->key_idx); in cm_store_wep_key()
249 if (!crypto_key) { in cm_store_wep_key()
250 crypto_key = qdf_mem_malloc(sizeof(*crypto_key)); in cm_store_wep_key()
251 if (!crypto_key) in cm_store_wep_key()
[all …]
/wlan-driver/qca-wifi-host-cmn/os_if/linux/crypto/inc/
H A Dwlan_cfg80211_crypto.h55 struct wlan_crypto_key *crypto_key);
73 struct wlan_crypto_key *crypto_key);
/wlan-driver/qca-wifi-host-cmn/umac/cmn_services/crypto/inc/
H A Dwlan_crypto_global_api.h941 struct wlan_crypto_key *crypto_key,
954 struct wlan_crypto_key *crypto_key);
999 void wlan_crypto_free_key(struct wlan_crypto_keys *crypto_key);
1031 struct wlan_crypto_key *crypto_key) in wlan_crypto_save_key() argument
/wlan-driver/qcacld-3.0/components/umac/mlme/connection_mgr/core/src/
H A Dwlan_cm_vdev_connect.c1668 struct wlan_crypto_key *crypto_key; in cm_install_link_vdev_keys() local
1708 crypto_key = wlan_crypto_get_key(vdev, i); in cm_install_link_vdev_keys()
1709 if (!crypto_key) in cm_install_link_vdev_keys()
1712 pairwise = crypto_key->key_type ? WLAN_CRYPTO_KEY_TYPE_UNICAST : WLAN_CRYPTO_KEY_TYPE_GROUP; in cm_install_link_vdev_keys()
1716 crypto_key->cipher_type); in cm_install_link_vdev_keys()
/wlan-driver/qcacld-3.0/core/sme/src/csr/
H A Dcsr_api_roam.c3405 struct wlan_crypto_key *crypto_key, in csr_update_wep_key_peer_macaddr() argument
3409 if (!crypto_key || !vdev) { in csr_update_wep_key_peer_macaddr()
3415 qdf_mem_copy(&crypto_key->macaddr, mac_addr, in csr_update_wep_key_peer_macaddr()
3420 qdf_mem_copy(&crypto_key->macaddr, mac_addr, in csr_update_wep_key_peer_macaddr()
3423 qdf_mem_copy(&crypto_key->macaddr, in csr_update_wep_key_peer_macaddr()
3638 struct wlan_crypto_key *crypto_key; in csr_roam_issue_set_context_req() local
3651 crypto_key = wlan_crypto_get_key(vdev, wep_key_idx); in csr_roam_issue_set_context_req()
3652 csr_update_wep_key_peer_macaddr(vdev, crypto_key, unicast, in csr_roam_issue_set_context_req()
3655 crypto_key = wlan_crypto_get_key(vdev, key_idx); in csr_roam_issue_set_context_req()
3665 return ucfg_crypto_set_key_req(vdev, crypto_key, (unicast ? in csr_roam_issue_set_context_req()
/wlan-driver/qcacld-3.0/core/wma/src/
H A Dwma_features.c6157 struct wlan_crypto_key *crypto_key; in wma_send_set_key_rsp() local
6172 crypto_key = wlan_crypto_get_key(vdev, key_index); in wma_send_set_key_rsp()
6175 if (!crypto_key) { in wma_send_set_key_rsp()
6186 key_info_uc->key_len = crypto_key->keylen; in wma_send_set_key_rsp()
6187 qdf_mem_copy(&key_info_uc->macaddr, &crypto_key->macaddr, in wma_send_set_key_rsp()
6191 wlan_release_peer_key_wakelock(wma->pdev, crypto_key->macaddr); in wma_send_set_key_rsp()
6198 key_info_mc->key_len = crypto_key->keylen; in wma_send_set_key_rsp()
/wlan-driver/qcacld-3.0/components/mlme/dispatcher/src/
H A Dwlan_mlme_api.c3781 struct wlan_crypto_key *crypto_key = NULL; in mlme_get_wep_key() local
3787 crypto_key = wlan_crypto_get_key(vdev, wep_keyid); in mlme_get_wep_key()
3788 if (!crypto_key) { in mlme_get_wep_key()
3793 if (crypto_key->keylen > WLAN_CRYPTO_KEY_WEP104_LEN) { in mlme_get_wep_key()
3797 *key_len = crypto_key->keylen; in mlme_get_wep_key()
3798 qdf_mem_copy(default_key, &crypto_key->keyval, crypto_key->keylen); in mlme_get_wep_key()