Lines Matching refs:crypt

315 					  struct lib80211_crypt_data *crypt)  in hostap_tx_encrypt()  argument
331 strcmp(crypt->ops->name, "TKIP") == 0) { in hostap_tx_encrypt()
346 prefix_len = crypt->ops->extra_mpdu_prefix_len + in hostap_tx_encrypt()
347 crypt->ops->extra_msdu_prefix_len; in hostap_tx_encrypt()
348 postfix_len = crypt->ops->extra_mpdu_postfix_len + in hostap_tx_encrypt()
349 crypt->ops->extra_msdu_postfix_len; in hostap_tx_encrypt()
362 atomic_inc(&crypt->refcnt); in hostap_tx_encrypt()
364 if (crypt->ops->encrypt_msdu) in hostap_tx_encrypt()
365 res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt()
366 if (res == 0 && crypt->ops->encrypt_mpdu) in hostap_tx_encrypt()
367 res = crypt->ops->encrypt_mpdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt()
368 atomic_dec(&crypt->refcnt); in hostap_tx_encrypt()
413 tx.crypt = local->crypt_info.crypt[local->crypt_info.tx_keyidx]; in hostap_master_start_xmit()
416 tx.crypt = NULL; in hostap_master_start_xmit()
482 tx.crypt = NULL; in hostap_master_start_xmit()
485 if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt && in hostap_master_start_xmit()
490 tx.crypt = NULL; /* no encryption for IEEE 802.1X frames */ in hostap_master_start_xmit()
493 if (tx.crypt && (!tx.crypt->ops || !tx.crypt->ops->encrypt_mpdu)) in hostap_master_start_xmit()
494 tx.crypt = NULL; in hostap_master_start_xmit()
495 else if ((tx.crypt || in hostap_master_start_xmit()
496 local->crypt_info.crypt[local->crypt_info.tx_keyidx]) && in hostap_master_start_xmit()
514 if (tx.crypt) { in hostap_master_start_xmit()
515 skb = hostap_tx_encrypt(skb, tx.crypt); in hostap_master_start_xmit()