Lines Matching refs:crypt
651 struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt() argument
656 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in hostap_rx_frame_decrypt()
663 strcmp(crypt->ops->name, "TKIP") == 0) { in hostap_rx_frame_decrypt()
672 atomic_inc(&crypt->refcnt); in hostap_rx_frame_decrypt()
673 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in hostap_rx_frame_decrypt()
674 atomic_dec(&crypt->refcnt); in hostap_rx_frame_decrypt()
689 int keyidx, struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt_msdu() argument
694 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in hostap_rx_frame_decrypt_msdu()
700 atomic_inc(&crypt->refcnt); in hostap_rx_frame_decrypt_msdu()
701 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in hostap_rx_frame_decrypt_msdu()
702 atomic_dec(&crypt->refcnt); in hostap_rx_frame_decrypt_msdu()
734 struct lib80211_crypt_data *crypt = NULL; in hostap_80211_rx() local
785 crypt = local->crypt_info.crypt[idx]; in hostap_80211_rx()
796 (void) hostap_handle_sta_crypto(local, hdr, &crypt, in hostap_80211_rx()
801 if (crypt && (crypt->ops == NULL || in hostap_80211_rx()
802 crypt->ops->decrypt_mpdu == NULL)) in hostap_80211_rx()
803 crypt = NULL; in hostap_80211_rx()
805 if (!crypt && (fc & IEEE80211_FCTL_PROTECTED)) { in hostap_80211_rx()
824 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx()
913 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx()
977 hostap_rx_frame_decrypt_msdu(local, skb, keyidx, crypt)) in hostap_80211_rx()
981 if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !local->open_wep) { in hostap_80211_rx()