• Home
  • Raw
  • Download

Lines Matching refs:hdr

65 	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;  in should_drop_frame()  local
71 if (ieee80211_is_ctl(hdr->frame_control) && in should_drop_frame()
72 !ieee80211_is_pspoll(hdr->frame_control) && in should_drop_frame()
73 !ieee80211_is_back_req(hdr->frame_control)) in should_drop_frame()
341 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_parse_qos() local
345 if (ieee80211_is_data_qos(hdr->frame_control)) { in ieee80211_parse_qos()
346 u8 *qc = ieee80211_get_qos_ctl(hdr); in ieee80211_parse_qos()
377 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_verify_ip_alignment() local
380 if (!ieee80211_is_data_present(hdr->frame_control)) in ieee80211_verify_ip_alignment()
402 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_verify_ip_alignment()
441 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_rx_mesh_check() local
442 unsigned int hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_mesh_check()
444 if (ieee80211_is_data(hdr->frame_control)) { in ieee80211_rx_mesh_check()
445 if (!ieee80211_has_a4(hdr->frame_control)) in ieee80211_rx_mesh_check()
447 if (memcmp(hdr->addr4, rx->dev->dev_addr, ETH_ALEN) == 0) in ieee80211_rx_mesh_check()
458 if (!ieee80211_is_mgmt(hdr->frame_control)) in ieee80211_rx_mesh_check()
461 if (ieee80211_is_action(hdr->frame_control)) { in ieee80211_rx_mesh_check()
462 mgmt = (struct ieee80211_mgmt *)hdr; in ieee80211_rx_mesh_check()
468 if (ieee80211_is_probe_req(hdr->frame_control) || in ieee80211_rx_mesh_check()
469 ieee80211_is_probe_resp(hdr->frame_control) || in ieee80211_rx_mesh_check()
470 ieee80211_is_beacon(hdr->frame_control)) in ieee80211_rx_mesh_check()
479 if (ieee80211_is_data(hdr->frame_control) && in ieee80211_rx_mesh_check()
480 is_multicast_ether_addr(hdr->addr1) && in ieee80211_rx_mesh_check()
481 mesh_rmc_check(hdr->addr4, msh_h_get(hdr, hdrlen), rx->sdata)) in ieee80211_rx_mesh_check()
492 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_rx_h_check() local
495 if (rx->sta && !is_multicast_ether_addr(hdr->addr1)) { in ieee80211_rx_h_check()
496 if (unlikely(ieee80211_has_retry(hdr->frame_control) && in ieee80211_rx_h_check()
498 hdr->seq_ctrl)) { in ieee80211_rx_h_check()
505 rx->sta->last_seq_ctrl[rx->queue] = hdr->seq_ctrl; in ieee80211_rx_h_check()
525 if (unlikely((ieee80211_is_data(hdr->frame_control) || in ieee80211_rx_h_check()
526 ieee80211_is_pspoll(hdr->frame_control)) && in ieee80211_rx_h_check()
529 if ((!ieee80211_has_fromds(hdr->frame_control) && in ieee80211_rx_h_check()
530 !ieee80211_has_tods(hdr->frame_control) && in ieee80211_rx_h_check()
531 ieee80211_is_data(hdr->frame_control)) || in ieee80211_rx_h_check()
548 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_rx_h_decrypt() local
580 if (!ieee80211_has_protected(hdr->frame_control)) in ieee80211_rx_h_decrypt()
593 if (!is_multicast_ether_addr(hdr->addr1) && stakey) { in ieee80211_rx_h_decrypt()
609 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_decrypt()
628 !is_multicast_ether_addr(hdr->addr1)) in ieee80211_rx_h_decrypt()
641 ieee80211_is_data(hdr->frame_control) && in ieee80211_rx_h_decrypt()
728 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_rx_h_sta_process() local
737 u8 *bssid = ieee80211_get_bssid(hdr, rx->skb->len, in ieee80211_rx_h_sta_process()
742 if (!is_multicast_ether_addr(hdr->addr1) || in ieee80211_rx_h_sta_process()
766 if (!ieee80211_has_morefrags(hdr->frame_control) && in ieee80211_rx_h_sta_process()
778 if (ieee80211_is_data(hdr->frame_control) && in ieee80211_rx_h_sta_process()
779 !ieee80211_has_pm(hdr->frame_control)) in ieee80211_rx_h_sta_process()
782 if (ieee80211_has_pm(hdr->frame_control)) in ieee80211_rx_h_sta_process()
789 if (ieee80211_is_nullfunc(hdr->frame_control)) { in ieee80211_rx_h_sta_process()
816 struct ieee80211_hdr *hdr = in ieee80211_reassemble_add() local
823 entry->last_frag, hdr->addr1, hdr->addr2); in ieee80211_reassemble_add()
843 int rx_queue, struct ieee80211_hdr *hdr) in ieee80211_reassemble_find() argument
867 if (((hdr->frame_control ^ f_hdr->frame_control) & in ieee80211_reassemble_find()
869 compare_ether_addr(hdr->addr1, f_hdr->addr1) != 0 || in ieee80211_reassemble_find()
870 compare_ether_addr(hdr->addr2, f_hdr->addr2) != 0) in ieee80211_reassemble_find()
886 struct ieee80211_hdr *hdr; in ieee80211_rx_h_defragment() local
893 hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_rx_h_defragment()
894 fc = hdr->frame_control; in ieee80211_rx_h_defragment()
895 sc = le16_to_cpu(hdr->seq_ctrl); in ieee80211_rx_h_defragment()
900 is_multicast_ether_addr(hdr->addr1))) { in ieee80211_rx_h_defragment()
927 entry = ieee80211_reassemble_find(rx->sdata, frag, seq, rx->queue, hdr); in ieee80211_rx_h_defragment()
982 if (is_multicast_ether_addr(hdr->addr1)) in ieee80211_rx_h_defragment()
1015 struct ieee80211_hdr *hdr = in ieee80211_rx_h_ps_poll() local
1033 hdr->frame_control &= cpu_to_le16(~IEEE80211_FCTL_MOREDATA); in ieee80211_rx_h_ps_poll()
1035 hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_MOREDATA); in ieee80211_rx_h_ps_poll()
1066 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)data; in ieee80211_rx_h_remove_qos_control() local
1068 if (!ieee80211_is_data_qos(hdr->frame_control)) in ieee80211_rx_h_remove_qos_control()
1073 ieee80211_hdrlen(hdr->frame_control) - IEEE80211_QOS_CTL_LEN); in ieee80211_rx_h_remove_qos_control()
1074 hdr = (struct ieee80211_hdr *)skb_pull(rx->skb, IEEE80211_QOS_CTL_LEN); in ieee80211_rx_h_remove_qos_control()
1076 hdr->frame_control &= ~cpu_to_le16(IEEE80211_STYPE_QOS_DATA); in ieee80211_rx_h_remove_qos_control()
1114 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) rx->skb->data; in ieee80211_data_to_8023() local
1122 if (unlikely(!ieee80211_is_data_present(hdr->frame_control))) in ieee80211_data_to_8023()
1125 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_data_to_8023()
1136 memcpy(dst, ieee80211_get_DA(hdr), ETH_ALEN); in ieee80211_data_to_8023()
1137 memcpy(src, ieee80211_get_SA(hdr), ETH_ALEN); in ieee80211_data_to_8023()
1139 switch (hdr->frame_control & in ieee80211_data_to_8023()
1293 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_rx_h_amsdu() local
1294 __le16 fc = hdr->frame_control; in ieee80211_rx_h_amsdu()
1402 struct ieee80211_hdr *hdr; in ieee80211_rx_h_mesh_fwding() local
1407 hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_rx_h_mesh_fwding()
1408 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_mesh_fwding()
1411 if (!ieee80211_is_data(hdr->frame_control)) in ieee80211_rx_h_mesh_fwding()
1426 mpp_path_add(mesh_hdr->eaddr2, hdr->addr4, sdata); in ieee80211_rx_h_mesh_fwding()
1430 if (compare_ether_addr(mppath->mpp, hdr->addr4) != 0) in ieee80211_rx_h_mesh_fwding()
1431 memcpy(mppath->mpp, hdr->addr4, ETH_ALEN); in ieee80211_rx_h_mesh_fwding()
1437 if (compare_ether_addr(rx->dev->dev_addr, hdr->addr3) == 0) in ieee80211_rx_h_mesh_fwding()
1467 if (is_multicast_ether_addr(hdr->addr3) || in ieee80211_rx_h_mesh_fwding()
1479 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_rx_h_data() local
1480 __le16 fc = hdr->frame_control; in ieee80211_rx_h_data()
1483 if (unlikely(!ieee80211_is_data(hdr->frame_control))) in ieee80211_rx_h_data()
1486 if (unlikely(!ieee80211_is_data_present(hdr->frame_control))) in ieee80211_rx_h_data()
1638 struct ieee80211_hdr *hdr, in ieee80211_rx_michael_mic_report() argument
1644 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_michael_mic_report()
1658 if (!ieee80211_has_protected(hdr->frame_control)) in ieee80211_rx_michael_mic_report()
1671 if (!ieee80211_is_data(hdr->frame_control) && in ieee80211_rx_michael_mic_report()
1672 !ieee80211_is_auth(hdr->frame_control)) in ieee80211_rx_michael_mic_report()
1675 mac80211_ev_michael_mic_failure(rx->sdata, keyidx, hdr); in ieee80211_rx_michael_mic_report()
1687 struct ieee80211_radiotap_header hdr; in ieee80211_rx_cooked_monitor() member
1706 rthdr->hdr.it_len = cpu_to_le16(sizeof(*rthdr)); in ieee80211_rx_cooked_monitor()
1707 rthdr->hdr.it_present = in ieee80211_rx_cooked_monitor()
1827 struct ieee80211_hdr *hdr) in prepare_for_handlers() argument
1829 int multicast = is_multicast_ether_addr(hdr->addr1); in prepare_for_handlers()
1841 hdr->addr1) != 0) { in prepare_for_handlers()
1850 if (ieee80211_is_beacon(hdr->frame_control)) { in prepare_for_handlers()
1859 hdr->addr1) != 0) { in prepare_for_handlers()
1869 rx->sta = ieee80211_ibss_add_sta(sdata, bssid, hdr->addr2, in prepare_for_handlers()
1876 hdr->addr1) != 0) { in prepare_for_handlers()
1887 hdr->addr1)) in prepare_for_handlers()
1897 if (bssid || !ieee80211_is_data(hdr->frame_control)) in prepare_for_handlers()
1899 if (compare_ether_addr(sdata->u.wds.remote_addr, hdr->addr2)) in prepare_for_handlers()
1926 struct ieee80211_hdr *hdr; in __ieee80211_rx_handle_packet() local
1933 hdr = (struct ieee80211_hdr *)skb->data; in __ieee80211_rx_handle_packet()
1941 if (ieee80211_is_data(hdr->frame_control) || ieee80211_is_mgmt(hdr->frame_control)) in __ieee80211_rx_handle_packet()
1944 rx.sta = sta_info_get(local, hdr->addr2); in __ieee80211_rx_handle_packet()
1951 ieee80211_rx_michael_mic_report(local->mdev, hdr, &rx); in __ieee80211_rx_handle_packet()
1970 bssid = ieee80211_get_bssid(hdr, skb->len, sdata->vif.type); in __ieee80211_rx_handle_packet()
1972 prepares = prepare_for_handlers(sdata, bssid, &rx, hdr); in __ieee80211_rx_handle_packet()
2146 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_rx_reorder_ampdu() local
2154 sta = sta_info_get(local, hdr->addr2); in ieee80211_rx_reorder_ampdu()
2160 if (!ieee80211_is_data_qos(hdr->frame_control)) in ieee80211_rx_reorder_ampdu()
2163 tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK; in ieee80211_rx_reorder_ampdu()
2171 if (unlikely(hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_NULLFUNC))) in ieee80211_rx_reorder_ampdu()
2184 sc = le16_to_cpu(hdr->seq_ctrl); in ieee80211_rx_reorder_ampdu()