Lines Matching refs:hdr

58 	struct ieee80211_hdr *hdr;  in ieee80211_duration()  local
101 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_duration()
102 if (ieee80211_is_ctl(hdr->frame_control)) { in ieee80211_duration()
181 if (ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_duration()
182 *(ieee80211_get_qos_ctl(hdr)) & IEEE80211_QOS_CTL_ACK_POLICY_NOACK) in ieee80211_duration()
284 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_check_assoc() local
293 !ieee80211_is_probe_req(hdr->frame_control) && in ieee80211_tx_h_check_assoc()
294 !ieee80211_is_nullfunc(hdr->frame_control)) in ieee80211_tx_h_check_assoc()
322 ieee80211_is_data(hdr->frame_control))) { in ieee80211_tx_h_check_assoc()
326 hdr->addr1); in ieee80211_tx_h_check_assoc()
332 ieee80211_is_data(hdr->frame_control) && in ieee80211_tx_h_check_assoc()
399 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_multicast_ps_buf() local
425 if (ieee80211_has_order(hdr->frame_control)) in ieee80211_tx_h_multicast_ps_buf()
428 if (ieee80211_is_probe_req(hdr->frame_control)) in ieee80211_tx_h_multicast_ps_buf()
480 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_unicast_ps_buf() local
492 if (ieee80211_is_mgmt(hdr->frame_control) && in ieee80211_tx_h_unicast_ps_buf()
493 !ieee80211_is_bufferable_mmpdu(hdr->frame_control)) { in ieee80211_tx_h_unicast_ps_buf()
586 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_select_key() local
593 else if (ieee80211_is_mgmt(hdr->frame_control) && in ieee80211_tx_h_select_key()
594 is_multicast_ether_addr(hdr->addr1) && in ieee80211_tx_h_select_key()
598 else if (is_multicast_ether_addr(hdr->addr1) && in ieee80211_tx_h_select_key()
601 else if (!is_multicast_ether_addr(hdr->addr1) && in ieee80211_tx_h_select_key()
616 if (!ieee80211_is_data_present(hdr->frame_control)) in ieee80211_tx_h_select_key()
623 if (!ieee80211_is_data_present(hdr->frame_control) && in ieee80211_tx_h_select_key()
624 !ieee80211_use_mfp(hdr->frame_control, tx->sta, in ieee80211_tx_h_select_key()
630 ieee80211_is_mgmt(hdr->frame_control); in ieee80211_tx_h_select_key()
636 if (!ieee80211_is_mgmt(hdr->frame_control)) in ieee80211_tx_h_select_key()
642 !ieee80211_is_deauth(hdr->frame_control))) in ieee80211_tx_h_select_key()
657 struct ieee80211_hdr *hdr = (void *)tx->skb->data; in ieee80211_tx_h_rate_ctrl() local
707 (ieee80211_is_data(hdr->frame_control) || in ieee80211_tx_h_rate_ctrl()
725 tx->sdata->name, hdr->addr1, in ieee80211_tx_h_rate_ctrl()
759 if (tx->sta && ieee80211_is_data(hdr->frame_control)) in ieee80211_tx_h_rate_ctrl()
792 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_sequence() local
804 if (unlikely(ieee80211_is_ctl(hdr->frame_control))) in ieee80211_tx_h_sequence()
807 if (ieee80211_hdrlen(hdr->frame_control) < 24) in ieee80211_tx_h_sequence()
810 if (ieee80211_is_qos_nullfunc(hdr->frame_control)) in ieee80211_tx_h_sequence()
819 if (!ieee80211_is_data_qos(hdr->frame_control) || in ieee80211_tx_h_sequence()
820 is_multicast_ether_addr(hdr->addr1)) { in ieee80211_tx_h_sequence()
824 hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number); in ieee80211_tx_h_sequence()
841 qc = ieee80211_get_qos_ctl(hdr); in ieee80211_tx_h_sequence()
846 hdr->seq_ctrl = ieee80211_tx_next_seq(tx->sta, tid); in ieee80211_tx_h_sequence()
916 struct ieee80211_hdr *hdr = (void *)skb->data; in ieee80211_tx_h_fragment() local
939 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_fragment()
962 hdr = (void *)skb->data; in ieee80211_tx_h_fragment()
966 hdr->frame_control |= morefrags; in ieee80211_tx_h_fragment()
977 hdr->frame_control &= ~morefrags; in ieee80211_tx_h_fragment()
979 hdr->seq_ctrl |= cpu_to_le16(fragnum & IEEE80211_SCTL_FRAG); in ieee80211_tx_h_fragment()
1044 struct ieee80211_hdr *hdr; in ieee80211_tx_h_calculate_duration() local
1049 hdr = (void *) skb->data; in ieee80211_tx_h_calculate_duration()
1050 if (unlikely(ieee80211_is_pspoll(hdr->frame_control))) in ieee80211_tx_h_calculate_duration()
1057 group_addr = is_multicast_ether_addr(hdr->addr1); in ieee80211_tx_h_calculate_duration()
1059 hdr->duration_id = in ieee80211_tx_h_calculate_duration()
1148 struct ieee80211_hdr *hdr; in ieee80211_tx_prepare() local
1166 hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_tx_prepare()
1179 tx->sta = sta_info_get_bss(sdata, hdr->addr1); in ieee80211_tx_prepare()
1181 if (!tx->sta && !is_multicast_ether_addr(hdr->addr1)) in ieee80211_tx_prepare()
1182 tx->sta = sta_info_get(sdata, hdr->addr1); in ieee80211_tx_prepare()
1185 if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_tx_prepare()
1186 !ieee80211_is_qos_nullfunc(hdr->frame_control) && in ieee80211_tx_prepare()
1191 qc = ieee80211_get_qos_ctl(hdr); in ieee80211_tx_prepare()
1206 if (is_multicast_ether_addr(hdr->addr1)) { in ieee80211_tx_prepare()
1236 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_drv_tx() local
1249 if (!ieee80211_is_data(hdr->frame_control)) in ieee80211_drv_tx()
1284 struct ieee80211_hdr *hdr; in ieee80211_tx_dequeue() local
1301 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_tx_dequeue()
1302 if (txq->sta && ieee80211_is_data_qos(hdr->frame_control)) { in ieee80211_tx_dequeue()
1307 hdr->seq_ctrl = ieee80211_tx_next_seq(sta, txq->tid); in ieee80211_tx_dequeue()
1634 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_xmit() local
1651 hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_xmit()
1655 if (ieee80211_is_data(hdr->frame_control) && in ieee80211_xmit()
1656 is_unicast_ether_addr(hdr->addr1)) { in ieee80211_xmit()
1660 ieee80211_mps_set_frame_flags(sdata, NULL, hdr); in ieee80211_xmit()
1759 struct ieee80211_hdr *hdr; in ieee80211_monitor_start_xmit() local
1797 hdr = (struct ieee80211_hdr *)(skb->data + len_rthdr); in ieee80211_monitor_start_xmit()
1798 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_monitor_start_xmit()
1807 if (ieee80211_is_data(hdr->frame_control) && in ieee80211_monitor_start_xmit()
1809 u8 *payload = (u8 *)hdr + hdrlen; in ieee80211_monitor_start_xmit()
1844 if (ether_addr_equal(tmp_sdata->vif.addr, hdr->addr2)) { in ieee80211_monitor_start_xmit()
2010 struct ieee80211_hdr hdr; in ieee80211_build_hdr() local
2038 memcpy(hdr.addr1, sta->sta.addr, ETH_ALEN); in ieee80211_build_hdr()
2039 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr()
2040 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2041 memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2066 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2067 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr()
2068 memcpy(hdr.addr3, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2075 memcpy(hdr.addr1, sdata->u.wds.remote_addr, ETH_ALEN); in ieee80211_build_hdr()
2076 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr()
2077 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2078 memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2117 hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, in ieee80211_build_hdr()
2135 hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, in ieee80211_build_hdr()
2163 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2164 memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2165 memcpy(hdr.addr3, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_build_hdr()
2172 memcpy(hdr.addr1, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_build_hdr()
2173 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr()
2174 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2175 memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2180 memcpy(hdr.addr1, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_build_hdr()
2181 memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2182 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2194 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2195 memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2196 eth_broadcast_addr(hdr.addr3); in ieee80211_build_hdr()
2207 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2208 memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2209 memcpy(hdr.addr3, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_build_hdr()
2223 multicast = is_multicast_ether_addr(hdr.addr1); in ieee80211_build_hdr()
2251 sdata->name, hdr.addr1); in ieee80211_build_hdr()
2300 hdr.frame_control = fc; in ieee80211_build_hdr()
2301 hdr.duration_id = 0; in ieee80211_build_hdr()
2302 hdr.seq_ctrl = 0; in ieee80211_build_hdr()
2368 memcpy(skb_push(skb, hdrlen - 2), &hdr, hdrlen - 2); in ieee80211_build_hdr()
2375 memcpy(skb_push(skb, hdrlen), &hdr, hdrlen); in ieee80211_build_hdr()
2426 struct ieee80211_hdr *hdr = (void *)build.hdr; in ieee80211_check_fast_xmit() local
2484 memcpy(hdr->addr3, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_check_fast_xmit()
2492 memcpy(hdr->addr3, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_check_fast_xmit()
2502 memcpy(hdr->addr1, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_check_fast_xmit()
2503 memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_check_fast_xmit()
2511 memcpy(hdr->addr1, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_check_fast_xmit()
2521 memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN); in ieee80211_check_fast_xmit()
2522 memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_check_fast_xmit()
2533 memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_check_fast_xmit()
2571 (build.hdr + build.hdr_len)[3] = in ieee80211_check_fast_xmit()
2582 (build.hdr + build.hdr_len)[3] = in ieee80211_check_fast_xmit()
2630 hdr->frame_control = fc; in ieee80211_check_fast_xmit()
2632 memcpy(build.hdr + build.hdr_len, in ieee80211_check_fast_xmit()
2703 struct ieee80211_hdr *hdr = (void *)fast_tx->hdr; in ieee80211_xmit_fast() local
2721 if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) { in ieee80211_xmit_fast()
2759 hdr = (void *)skb_push(skb, extra_head); in ieee80211_xmit_fast()
2760 memcpy(skb->data, fast_tx->hdr, fast_tx->hdr_len); in ieee80211_xmit_fast()
2771 if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) { in ieee80211_xmit_fast()
2772 *ieee80211_get_qos_ctl(hdr) = tid; in ieee80211_xmit_fast()
2774 hdr->seq_ctrl = ieee80211_tx_next_seq(sta, tid); in ieee80211_xmit_fast()
2777 hdr->seq_ctrl = cpu_to_le16(sdata->sequence_number); in ieee80211_xmit_fast()
2946 struct ieee80211_hdr *hdr; in ieee80211_build_data_template() local
2965 hdr = (void *)skb->data; in ieee80211_build_data_template()
2966 tx.sta = sta_info_get(sdata, hdr->addr1); in ieee80211_build_data_template()
3006 struct ieee80211_hdr *hdr; in ieee80211_tx_pending_skb() local
3026 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_tx_pending_skb()
3027 sta = sta_info_get(sdata, hdr->addr1); in ieee80211_tx_pending_skb()
3387 struct ieee80211_hdr *hdr; in __ieee80211_beacon_get() local
3408 hdr = (struct ieee80211_hdr *) skb->data; in __ieee80211_beacon_get()
3409 hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in __ieee80211_beacon_get()
3555 struct ieee80211_hdr *hdr; in ieee80211_proberesp_get() local
3574 hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_proberesp_get()
3575 memset(hdr->addr1, 0, sizeof(hdr->addr1)); in ieee80211_proberesp_get()
3663 struct ieee80211_hdr_3addr *hdr; in ieee80211_probereq_get() local
3670 skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*hdr) + in ieee80211_probereq_get()
3677 hdr = (struct ieee80211_hdr_3addr *) skb_put(skb, sizeof(*hdr)); in ieee80211_probereq_get()
3678 memset(hdr, 0, sizeof(*hdr)); in ieee80211_probereq_get()
3679 hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_probereq_get()
3681 eth_broadcast_addr(hdr->addr1); in ieee80211_probereq_get()
3682 memcpy(hdr->addr2, src_addr, ETH_ALEN); in ieee80211_probereq_get()
3683 eth_broadcast_addr(hdr->addr3); in ieee80211_probereq_get()
3701 const struct ieee80211_hdr *hdr = frame; in ieee80211_rts_get() local
3707 memcpy(rts->ra, hdr->addr1, sizeof(rts->ra)); in ieee80211_rts_get()
3708 memcpy(rts->ta, hdr->addr2, sizeof(rts->ta)); in ieee80211_rts_get()
3717 const struct ieee80211_hdr *hdr = frame; in ieee80211_ctstoself_get() local
3723 memcpy(cts->ra, hdr->addr1, sizeof(cts->ra)); in ieee80211_ctstoself_get()
3771 struct ieee80211_hdr *hdr = in ieee80211_get_buffered_bc() local
3776 hdr->frame_control |= in ieee80211_get_buffered_bc()