Lines Matching refs:crypt

316 					  struct lib80211_crypt_data *crypt)  in hostap_tx_encrypt()  argument
332 strcmp(crypt->ops->name, "TKIP") == 0) { in hostap_tx_encrypt()
347 prefix_len = crypt->ops->extra_mpdu_prefix_len + in hostap_tx_encrypt()
348 crypt->ops->extra_msdu_prefix_len; in hostap_tx_encrypt()
349 postfix_len = crypt->ops->extra_mpdu_postfix_len + in hostap_tx_encrypt()
350 crypt->ops->extra_msdu_postfix_len; in hostap_tx_encrypt()
363 atomic_inc(&crypt->refcnt); in hostap_tx_encrypt()
365 if (crypt->ops->encrypt_msdu) in hostap_tx_encrypt()
366 res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt()
367 if (res == 0 && crypt->ops->encrypt_mpdu) in hostap_tx_encrypt()
368 res = crypt->ops->encrypt_mpdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt()
369 atomic_dec(&crypt->refcnt); in hostap_tx_encrypt()
414 tx.crypt = local->crypt_info.crypt[local->crypt_info.tx_keyidx]; in hostap_master_start_xmit()
417 tx.crypt = NULL; in hostap_master_start_xmit()
483 tx.crypt = NULL; in hostap_master_start_xmit()
486 if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt && in hostap_master_start_xmit()
491 tx.crypt = NULL; /* no encryption for IEEE 802.1X frames */ in hostap_master_start_xmit()
494 if (tx.crypt && (!tx.crypt->ops || !tx.crypt->ops->encrypt_mpdu)) in hostap_master_start_xmit()
495 tx.crypt = NULL; in hostap_master_start_xmit()
496 else if ((tx.crypt || in hostap_master_start_xmit()
497 local->crypt_info.crypt[local->crypt_info.tx_keyidx]) && in hostap_master_start_xmit()
515 if (tx.crypt) { in hostap_master_start_xmit()
516 skb = hostap_tx_encrypt(skb, tx.crypt); in hostap_master_start_xmit()