Lines Matching refs:key
4103 struct ieee80211_key_conf *key, in ath11k_install_key() argument
4111 .key_idx = key->keyidx, in ath11k_install_key()
4112 .key_len = key->keylen, in ath11k_install_key()
4113 .key_data = key->key, in ath11k_install_key()
4131 switch (key->cipher) { in ath11k_install_key()
4136 key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT; in ath11k_install_key()
4146 key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT; in ath11k_install_key()
4149 ath11k_warn(ar->ab, "cipher %d is not supported\n", key->cipher); in ath11k_install_key()
4154 key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV | in ath11k_install_key()
4213 struct ieee80211_key_conf *key) in ath11k_mac_op_set_key() argument
4225 if (key->cipher == WLAN_CIPHER_SUITE_AES_CMAC || in ath11k_mac_op_set_key()
4226 key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || in ath11k_mac_op_set_key()
4227 key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256 || in ath11k_mac_op_set_key()
4228 key->cipher == WLAN_CIPHER_SUITE_BIP_CMAC_256) in ath11k_mac_op_set_key()
4234 if (key->keyidx > WMI_MAX_KEY_INDEX) in ath11k_mac_op_set_key()
4246 key->hw_key_idx = key->keyidx; in ath11k_mac_op_set_key()
4275 if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in ath11k_mac_op_set_key()
4280 ret = ath11k_install_key(arvif, key, cmd, peer_addr, flags); in ath11k_mac_op_set_key()
4286 ret = ath11k_dp_peer_rx_pn_replay_config(arvif, peer_addr, cmd, key); in ath11k_mac_op_set_key()
4295 peer->keys[key->keyidx] = key; in ath11k_mac_op_set_key()
4296 if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) { in ath11k_mac_op_set_key()
4297 peer->ucast_keyidx = key->keyidx; in ath11k_mac_op_set_key()
4298 peer->sec_type = ath11k_dp_tx_get_encrypt_type(key->cipher); in ath11k_mac_op_set_key()
4300 peer->mcast_keyidx = key->keyidx; in ath11k_mac_op_set_key()
4301 peer->sec_type_grp = ath11k_dp_tx_get_encrypt_type(key->cipher); in ath11k_mac_op_set_key()
4304 peer->keys[key->keyidx] = NULL; in ath11k_mac_op_set_key()
4305 if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in ath11k_mac_op_set_key()
4316 switch (key->cipher) { in ath11k_mac_op_set_key()
6179 struct ieee80211_key_conf *key = info->control.hw_key; in ath11k_mac_op_tx() local
6188 if (key) { in ath11k_mac_op_tx()
6189 skb_cb->cipher = key->cipher; in ath11k_mac_op_tx()