Lines Matching refs:crypt
306 struct ieee80211_crypt_data *crypt)
323 strcmp(crypt->ops->name, "TKIP") == 0) {
338 prefix_len = crypt->ops->extra_mpdu_prefix_len +
339 crypt->ops->extra_msdu_prefix_len;
340 postfix_len = crypt->ops->extra_mpdu_postfix_len +
341 crypt->ops->extra_msdu_postfix_len;
355 atomic_inc(&crypt->refcnt);
357 if (crypt->ops->encrypt_msdu)
358 res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv);
359 if (res == 0 && crypt->ops->encrypt_mpdu)
360 res = crypt->ops->encrypt_mpdu(skb, hdr_len, crypt->priv);
361 atomic_dec(&crypt->refcnt);
403 /* Set crypt to default algorithm and key; will be replaced in
405 tx.crypt = local->crypt[local->tx_keyidx];
408 tx.crypt = NULL;
474 tx.crypt = NULL;
477 if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt &&
482 tx.crypt = NULL; /* no encryption for IEEE 802.1X frames */
485 if (tx.crypt && (!tx.crypt->ops || !tx.crypt->ops->encrypt_mpdu))
486 tx.crypt = NULL;
487 else if ((tx.crypt || local->crypt[local->tx_keyidx]) && !no_encrypt) {
504 if (tx.crypt) {
505 skb = hostap_tx_encrypt(skb, tx.crypt);