Lines Matching refs:hdr

48 	struct ieee80211_hdr *hdr;  in ieee80211_duration()  local
91 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_duration()
92 if (ieee80211_is_ctl(hdr->frame_control)) { in ieee80211_duration()
171 if (ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_duration()
172 *(ieee80211_get_qos_ctl(hdr)) & IEEE80211_QOS_CTL_ACK_POLICY_NOACK) in ieee80211_duration()
274 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_check_assoc() local
283 !ieee80211_is_probe_req(hdr->frame_control) && in ieee80211_tx_h_check_assoc()
284 !ieee80211_is_nullfunc(hdr->frame_control)) in ieee80211_tx_h_check_assoc()
312 ieee80211_is_data(hdr->frame_control))) { in ieee80211_tx_h_check_assoc()
316 hdr->addr1); in ieee80211_tx_h_check_assoc()
322 ieee80211_is_data(hdr->frame_control) && in ieee80211_tx_h_check_assoc()
389 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_multicast_ps_buf() local
415 if (ieee80211_has_order(hdr->frame_control)) in ieee80211_tx_h_multicast_ps_buf()
418 if (ieee80211_is_probe_req(hdr->frame_control)) in ieee80211_tx_h_multicast_ps_buf()
470 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_unicast_ps_buf() local
482 if (ieee80211_is_mgmt(hdr->frame_control) && in ieee80211_tx_h_unicast_ps_buf()
483 !ieee80211_is_bufferable_mmpdu(hdr->frame_control)) { in ieee80211_tx_h_unicast_ps_buf()
576 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_select_key() local
583 else if (ieee80211_is_mgmt(hdr->frame_control) && in ieee80211_tx_h_select_key()
584 is_multicast_ether_addr(hdr->addr1) && in ieee80211_tx_h_select_key()
588 else if (is_multicast_ether_addr(hdr->addr1) && in ieee80211_tx_h_select_key()
591 else if (!is_multicast_ether_addr(hdr->addr1) && in ieee80211_tx_h_select_key()
607 if (!ieee80211_is_data_present(hdr->frame_control)) in ieee80211_tx_h_select_key()
614 if (!ieee80211_is_data_present(hdr->frame_control) && in ieee80211_tx_h_select_key()
615 !ieee80211_use_mfp(hdr->frame_control, tx->sta, in ieee80211_tx_h_select_key()
621 ieee80211_is_mgmt(hdr->frame_control); in ieee80211_tx_h_select_key()
627 if (!ieee80211_is_mgmt(hdr->frame_control)) in ieee80211_tx_h_select_key()
633 !ieee80211_is_deauth(hdr->frame_control))) in ieee80211_tx_h_select_key()
648 struct ieee80211_hdr *hdr = (void *)tx->skb->data; in ieee80211_tx_h_rate_ctrl() local
697 (ieee80211_is_data(hdr->frame_control) || in ieee80211_tx_h_rate_ctrl()
715 tx->sdata->name, hdr->addr1, in ieee80211_tx_h_rate_ctrl()
749 if (tx->sta && ieee80211_is_data(hdr->frame_control)) in ieee80211_tx_h_rate_ctrl()
782 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_sequence() local
794 if (unlikely(ieee80211_is_ctl(hdr->frame_control))) in ieee80211_tx_h_sequence()
797 if (ieee80211_hdrlen(hdr->frame_control) < 24) in ieee80211_tx_h_sequence()
800 if (ieee80211_is_qos_nullfunc(hdr->frame_control)) in ieee80211_tx_h_sequence()
809 if (!ieee80211_is_data_qos(hdr->frame_control) || in ieee80211_tx_h_sequence()
810 is_multicast_ether_addr(hdr->addr1)) { in ieee80211_tx_h_sequence()
814 hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number); in ieee80211_tx_h_sequence()
831 qc = ieee80211_get_qos_ctl(hdr); in ieee80211_tx_h_sequence()
836 hdr->seq_ctrl = ieee80211_tx_next_seq(tx->sta, tid); in ieee80211_tx_h_sequence()
906 struct ieee80211_hdr *hdr = (void *)skb->data; in ieee80211_tx_h_fragment() local
929 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_fragment()
952 hdr = (void *)skb->data; in ieee80211_tx_h_fragment()
956 hdr->frame_control |= morefrags; in ieee80211_tx_h_fragment()
967 hdr->frame_control &= ~morefrags; in ieee80211_tx_h_fragment()
969 hdr->seq_ctrl |= cpu_to_le16(fragnum & IEEE80211_SCTL_FRAG); in ieee80211_tx_h_fragment()
1035 struct ieee80211_hdr *hdr; in ieee80211_tx_h_calculate_duration() local
1040 hdr = (void *) skb->data; in ieee80211_tx_h_calculate_duration()
1041 if (unlikely(ieee80211_is_pspoll(hdr->frame_control))) in ieee80211_tx_h_calculate_duration()
1048 group_addr = is_multicast_ether_addr(hdr->addr1); in ieee80211_tx_h_calculate_duration()
1050 hdr->duration_id = in ieee80211_tx_h_calculate_duration()
1137 struct ieee80211_hdr *hdr; in ieee80211_tx_prepare() local
1155 hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_tx_prepare()
1168 tx->sta = sta_info_get_bss(sdata, hdr->addr1); in ieee80211_tx_prepare()
1170 if (!tx->sta && !is_multicast_ether_addr(hdr->addr1)) in ieee80211_tx_prepare()
1171 tx->sta = sta_info_get(sdata, hdr->addr1); in ieee80211_tx_prepare()
1174 if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_tx_prepare()
1175 !ieee80211_is_qos_nullfunc(hdr->frame_control) && in ieee80211_tx_prepare()
1180 qc = ieee80211_get_qos_ctl(hdr); in ieee80211_tx_prepare()
1195 if (is_multicast_ether_addr(hdr->addr1)) { in ieee80211_tx_prepare()
1223 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_drv_tx() local
1236 if (!ieee80211_is_data(hdr->frame_control)) in ieee80211_drv_tx()
1271 struct ieee80211_hdr *hdr; in ieee80211_tx_dequeue() local
1288 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_tx_dequeue()
1289 if (txq->sta && ieee80211_is_data_qos(hdr->frame_control)) { in ieee80211_tx_dequeue()
1294 hdr->seq_ctrl = ieee80211_tx_next_seq(sta, txq->tid); in ieee80211_tx_dequeue()
1621 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_xmit() local
1638 hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_xmit()
1642 if (ieee80211_is_data(hdr->frame_control) && in ieee80211_xmit()
1643 is_unicast_ether_addr(hdr->addr1)) { in ieee80211_xmit()
1647 ieee80211_mps_set_frame_flags(sdata, NULL, hdr); in ieee80211_xmit()
1746 struct ieee80211_hdr *hdr; in ieee80211_monitor_start_xmit() local
1784 hdr = (struct ieee80211_hdr *)(skb->data + len_rthdr); in ieee80211_monitor_start_xmit()
1785 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_monitor_start_xmit()
1794 if (ieee80211_is_data(hdr->frame_control) && in ieee80211_monitor_start_xmit()
1796 u8 *payload = (u8 *)hdr + hdrlen; in ieee80211_monitor_start_xmit()
1831 if (ether_addr_equal(tmp_sdata->vif.addr, hdr->addr2)) { in ieee80211_monitor_start_xmit()
1997 struct ieee80211_hdr hdr; in ieee80211_build_hdr() local
2025 memcpy(hdr.addr1, sta->sta.addr, ETH_ALEN); in ieee80211_build_hdr()
2026 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr()
2027 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2028 memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2053 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2054 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr()
2055 memcpy(hdr.addr3, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2062 memcpy(hdr.addr1, sdata->u.wds.remote_addr, ETH_ALEN); in ieee80211_build_hdr()
2063 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr()
2064 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2065 memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2104 hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, in ieee80211_build_hdr()
2122 hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, in ieee80211_build_hdr()
2150 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2151 memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2152 memcpy(hdr.addr3, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_build_hdr()
2159 memcpy(hdr.addr1, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_build_hdr()
2160 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr()
2161 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2162 memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2167 memcpy(hdr.addr1, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_build_hdr()
2168 memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2169 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2181 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr()
2182 memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr()
2183 eth_broadcast_addr(hdr.addr3); 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 memcpy(hdr.addr3, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_build_hdr()
2210 multicast = is_multicast_ether_addr(hdr.addr1); in ieee80211_build_hdr()
2238 sdata->name, hdr.addr1); in ieee80211_build_hdr()
2287 hdr.frame_control = fc; in ieee80211_build_hdr()
2288 hdr.duration_id = 0; in ieee80211_build_hdr()
2289 hdr.seq_ctrl = 0; in ieee80211_build_hdr()
2355 memcpy(skb_push(skb, hdrlen - 2), &hdr, hdrlen - 2); in ieee80211_build_hdr()
2362 memcpy(skb_push(skb, hdrlen), &hdr, hdrlen); in ieee80211_build_hdr()
2437 struct ieee80211_hdr *hdr; in ieee80211_build_data_template() local
2456 hdr = (void *)skb->data; in ieee80211_build_data_template()
2457 tx.sta = sta_info_get(sdata, hdr->addr1); in ieee80211_build_data_template()
2497 struct ieee80211_hdr *hdr; in ieee80211_tx_pending_skb() local
2517 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_tx_pending_skb()
2518 sta = sta_info_get(sdata, hdr->addr1); in ieee80211_tx_pending_skb()
2872 struct ieee80211_hdr *hdr; in __ieee80211_beacon_get() local
2893 hdr = (struct ieee80211_hdr *) skb->data; in __ieee80211_beacon_get()
2894 hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in __ieee80211_beacon_get()
3021 struct ieee80211_hdr *hdr; in ieee80211_proberesp_get() local
3040 hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_proberesp_get()
3041 memset(hdr->addr1, 0, sizeof(hdr->addr1)); in ieee80211_proberesp_get()
3129 struct ieee80211_hdr_3addr *hdr; in ieee80211_probereq_get() local
3136 skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*hdr) + in ieee80211_probereq_get()
3143 hdr = (struct ieee80211_hdr_3addr *) skb_put(skb, sizeof(*hdr)); in ieee80211_probereq_get()
3144 memset(hdr, 0, sizeof(*hdr)); in ieee80211_probereq_get()
3145 hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_probereq_get()
3147 eth_broadcast_addr(hdr->addr1); in ieee80211_probereq_get()
3148 memcpy(hdr->addr2, src_addr, ETH_ALEN); in ieee80211_probereq_get()
3149 eth_broadcast_addr(hdr->addr3); in ieee80211_probereq_get()
3167 const struct ieee80211_hdr *hdr = frame; in ieee80211_rts_get() local
3173 memcpy(rts->ra, hdr->addr1, sizeof(rts->ra)); in ieee80211_rts_get()
3174 memcpy(rts->ta, hdr->addr2, sizeof(rts->ta)); in ieee80211_rts_get()
3183 const struct ieee80211_hdr *hdr = frame; in ieee80211_ctstoself_get() local
3189 memcpy(cts->ra, hdr->addr1, sizeof(cts->ra)); in ieee80211_ctstoself_get()
3237 struct ieee80211_hdr *hdr = in ieee80211_get_buffered_bc() local
3242 hdr->frame_control |= in ieee80211_get_buffered_bc()