• Home
  • Raw
  • Download

Lines Matching refs:hdr

42 	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;  in ieee80211_monitor_rx()  local
43 u16 fc = le16_to_cpu(hdr->frame_control); in ieee80211_monitor_rx()
89 struct ieee80211_hdr_4addr *hdr) in ieee80211_frag_cache_get() argument
96 sc = le16_to_cpu(hdr->seq_ctl); in ieee80211_frag_cache_get()
122 memcpy(entry->src_addr, hdr->addr2, ETH_ALEN); in ieee80211_frag_cache_get()
123 memcpy(entry->dst_addr, hdr->addr1, ETH_ALEN); in ieee80211_frag_cache_get()
127 entry = ieee80211_frag_cache_find(ieee, seq, frag, hdr->addr2, in ieee80211_frag_cache_get()
128 hdr->addr1); in ieee80211_frag_cache_get()
140 struct ieee80211_hdr_4addr *hdr) in ieee80211_frag_cache_invalidate() argument
146 sc = le16_to_cpu(hdr->seq_ctl); in ieee80211_frag_cache_invalidate()
149 entry = ieee80211_frag_cache_find(ieee, seq, -1, hdr->addr2, in ieee80211_frag_cache_invalidate()
150 hdr->addr1); in ieee80211_frag_cache_invalidate()
234 struct ieee80211_hdr_3addr *hdr; in ieee80211_is_eapol_frame() local
240 hdr = (struct ieee80211_hdr_3addr *)skb->data; in ieee80211_is_eapol_frame()
241 fc = le16_to_cpu(hdr->frame_ctl); in ieee80211_is_eapol_frame()
246 !compare_ether_addr(hdr->addr1, dev->dev_addr) && in ieee80211_is_eapol_frame()
247 !compare_ether_addr(hdr->addr3, dev->dev_addr)) { in ieee80211_is_eapol_frame()
251 !compare_ether_addr(hdr->addr1, dev->dev_addr)) { in ieee80211_is_eapol_frame()
273 struct ieee80211_hdr_3addr *hdr; in ieee80211_rx_frame_decrypt() local
279 hdr = (struct ieee80211_hdr_3addr *)skb->data; in ieee80211_rx_frame_decrypt()
280 hdrlen = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_ctl)); in ieee80211_rx_frame_decrypt()
287 hdr->addr2, res); in ieee80211_rx_frame_decrypt()
305 struct ieee80211_hdr_3addr *hdr; in ieee80211_rx_frame_decrypt_msdu() local
311 hdr = (struct ieee80211_hdr_3addr *)skb->data; in ieee80211_rx_frame_decrypt_msdu()
312 hdrlen = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_ctl)); in ieee80211_rx_frame_decrypt_msdu()
319 " (SA=%pM keyidx=%d)\n", ieee->dev->name, hdr->addr2, in ieee80211_rx_frame_decrypt_msdu()
334 struct ieee80211_hdr_4addr *hdr; in ieee80211_rx() local
355 hdr = (struct ieee80211_hdr_4addr *)skb->data; in ieee80211_rx()
363 fc = le16_to_cpu(hdr->frame_ctl); in ieee80211_rx()
366 sc = le16_to_cpu(hdr->seq_ctl); in ieee80211_rx()
404 wireless_spy_update(ieee->dev, hdr->addr2, &wstats); in ieee80211_rx()
410 hostap_update_rx_stats(local->ap, hdr, rx_stats); in ieee80211_rx()
420 can_be_decrypted = (is_multicast_ether_addr(hdr->addr1) || in ieee80211_rx()
421 is_broadcast_ether_addr(hdr->addr2)) ? in ieee80211_rx()
446 if (!(hdr->addr1[0] & 0x01) || local->bcrx_sta_key) in ieee80211_rx()
447 (void)hostap_handle_sta_crypto(local, hdr, &crypt, in ieee80211_rx()
463 " (SA=%pM)\n", hdr->addr2); in ieee80211_rx()
474 "from %pM\n", dev->name, hdr->addr2); in ieee80211_rx()
498 memcpy(dst, hdr->addr1, ETH_ALEN); in ieee80211_rx()
499 memcpy(src, hdr->addr3, ETH_ALEN); in ieee80211_rx()
502 memcpy(dst, hdr->addr3, ETH_ALEN); in ieee80211_rx()
503 memcpy(src, hdr->addr2, ETH_ALEN); in ieee80211_rx()
508 memcpy(dst, hdr->addr3, ETH_ALEN); in ieee80211_rx()
509 memcpy(src, hdr->addr4, ETH_ALEN); in ieee80211_rx()
512 memcpy(dst, hdr->addr1, ETH_ALEN); in ieee80211_rx()
513 memcpy(src, hdr->addr2, ETH_ALEN); in ieee80211_rx()
518 if (hostap_rx_frame_wds(ieee, hdr, fc, &wds)) in ieee80211_rx()
528 && !compare_ether_addr(hdr->addr2, ieee->assoc_ap_addr)) { in ieee80211_rx()
578 hdr = (struct ieee80211_hdr_4addr *)skb->data; in ieee80211_rx()
585 struct sk_buff *frag_skb = ieee80211_frag_cache_get(ieee, hdr); in ieee80211_rx()
605 ieee80211_frag_cache_invalidate(ieee, hdr); in ieee80211_rx()
632 hdr = (struct ieee80211_hdr_4addr *)skb->data; in ieee80211_rx()
633 ieee80211_frag_cache_invalidate(ieee, hdr); in ieee80211_rx()
642 hdr = (struct ieee80211_hdr_4addr *)skb->data; in ieee80211_rx()
651 hdr->addr2); in ieee80211_rx()
660 hdr->addr2); in ieee80211_rx()
840 struct ieee80211_hdr_4addr *hdr; in ieee80211_rx_any() local
853 hdr = (struct ieee80211_hdr_4addr *)skb->data; in ieee80211_rx_any()
854 fc = le16_to_cpu(hdr->frame_ctl); in ieee80211_rx_any()
863 ieee80211_rx_mgt(ieee, hdr, stats); in ieee80211_rx_any()
878 if (memcmp(hdr->addr3, ieee->bssid, ETH_ALEN) == 0) in ieee80211_rx_any()
884 else if (memcmp(hdr->addr1, ieee->dev->dev_addr, ETH_ALEN) == 0) in ieee80211_rx_any()
887 else if (is_multicast_ether_addr(hdr->addr1)) in ieee80211_rx_any()
893 if (memcmp(hdr->addr2, ieee->bssid, ETH_ALEN) == 0) in ieee80211_rx_any()
899 else if (memcmp(hdr->addr1, ieee->dev->dev_addr, ETH_ALEN) == 0) in ieee80211_rx_any()
902 else if (is_multicast_ether_addr(hdr->addr1)) { in ieee80211_rx_any()
904 if (memcmp(hdr->addr3, ieee->dev->dev_addr, ETH_ALEN)) in ieee80211_rx_any()