• Home
  • Raw
  • Download

Lines Matching refs:hdr

319 	struct ieee80211_hdr *hdr;  in lib80211_tkip_hdr()  local
321 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_tkip_hdr()
330 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in lib80211_tkip_hdr()
370 struct ieee80211_hdr *hdr = in lib80211_tkip_encrypt() local
373 "TX packet to %pM\n", hdr->addr1); in lib80211_tkip_encrypt()
421 struct ieee80211_hdr *hdr; in lib80211_tkip_decrypt() local
427 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_tkip_decrypt()
432 "received packet from %pM\n", hdr->addr2); in lib80211_tkip_decrypt()
445 " flag from %pM\n", hdr->addr2); in lib80211_tkip_decrypt()
459 " key\n", hdr->addr2, keyidx); in lib80211_tkip_decrypt()
472 "%08x%04x\n", hdr->addr2, in lib80211_tkip_decrypt()
481 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in lib80211_tkip_decrypt()
494 hdr->addr2); in lib80211_tkip_decrypt()
513 "%pM\n", hdr->addr2); in lib80211_tkip_decrypt()
533 static int michael_mic(struct crypto_hash *tfm_michael, u8 * key, u8 * hdr, in michael_mic() argument
544 sg_set_buf(&sg[0], hdr, 16); in michael_mic()
555 static void michael_mic_hdr(struct sk_buff *skb, u8 * hdr) in michael_mic_hdr() argument
564 memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */ in michael_mic_hdr()
565 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr()
568 memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */ in michael_mic_hdr()
569 memcpy(hdr + ETH_ALEN, hdr11->addr3, ETH_ALEN); /* SA */ in michael_mic_hdr()
572 memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */ in michael_mic_hdr()
573 memcpy(hdr + ETH_ALEN, hdr11->addr4, ETH_ALEN); /* SA */ in michael_mic_hdr()
576 memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */ in michael_mic_hdr()
577 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr()
582 hdr[12] = le16_to_cpu(*ieee80211_get_qos_ctl(hdr11)) in michael_mic_hdr()
585 hdr[12] = 0; /* priority */ in michael_mic_hdr()
587 hdr[13] = hdr[14] = hdr[15] = 0; /* reserved */ in michael_mic_hdr()
613 struct ieee80211_hdr *hdr, in lib80211_michael_mic_failure() argument
622 if (hdr->addr1[0] & 0x01) in lib80211_michael_mic_failure()
627 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in lib80211_michael_mic_failure()
647 struct ieee80211_hdr *hdr; in lib80211_michael_mic_verify() local
648 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_michael_mic_verify()
651 skb->dev ? skb->dev->name : "N/A", hdr->addr2, in lib80211_michael_mic_verify()
654 lib80211_michael_mic_failure(skb->dev, hdr, keyidx); in lib80211_michael_mic_verify()