Lines Matching refs:hdr
22 struct ieee80211_hdr *hdr; in hostap_dump_tx_80211() local
25 hdr = (struct ieee80211_hdr *) skb->data; in hostap_dump_tx_80211()
33 fc = le16_to_cpu(hdr->frame_control); in hostap_dump_tx_80211()
45 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), in hostap_dump_tx_80211()
46 le16_to_cpu(hdr->seq_ctrl)); in hostap_dump_tx_80211()
48 printk(KERN_DEBUG " A1=%pM", hdr->addr1); in hostap_dump_tx_80211()
49 printk(" A2=%pM", hdr->addr2); in hostap_dump_tx_80211()
50 printk(" A3=%pM", hdr->addr3); in hostap_dump_tx_80211()
52 printk(" A4=%pM", hdr->addr4); in hostap_dump_tx_80211()
66 struct ieee80211_hdr hdr; in hostap_data_start_xmit() local
123 memset(&hdr, 0, sizeof(hdr)); in hostap_data_start_xmit()
156 &hdr.addr4, ETH_ALEN); in hostap_data_start_xmit()
170 &hdr.addr4, ETH_ALEN); in hostap_data_start_xmit()
178 eth_broadcast_addr(hdr.addr1); in hostap_data_start_xmit()
180 memcpy(&hdr.addr1, iface->u.wds.remote_addr, in hostap_data_start_xmit()
183 memcpy(&hdr.addr1, local->bssid, ETH_ALEN); in hostap_data_start_xmit()
184 memcpy(&hdr.addr2, dev->dev_addr, ETH_ALEN); in hostap_data_start_xmit()
185 skb_copy_from_linear_data(skb, &hdr.addr3, ETH_ALEN); in hostap_data_start_xmit()
189 skb_copy_from_linear_data(skb, &hdr.addr1, ETH_ALEN); in hostap_data_start_xmit()
190 memcpy(&hdr.addr2, dev->dev_addr, ETH_ALEN); in hostap_data_start_xmit()
191 skb_copy_from_linear_data_offset(skb, ETH_ALEN, &hdr.addr3, in hostap_data_start_xmit()
196 memcpy(&hdr.addr1, to_assoc_ap ? in hostap_data_start_xmit()
198 skb_copy_from_linear_data_offset(skb, ETH_ALEN, &hdr.addr2, in hostap_data_start_xmit()
200 skb_copy_from_linear_data(skb, &hdr.addr3, ETH_ALEN); in hostap_data_start_xmit()
203 skb_copy_from_linear_data(skb, &hdr.addr1, ETH_ALEN); in hostap_data_start_xmit()
204 skb_copy_from_linear_data_offset(skb, ETH_ALEN, &hdr.addr2, in hostap_data_start_xmit()
206 memcpy(&hdr.addr3, local->bssid, ETH_ALEN); in hostap_data_start_xmit()
209 hdr.frame_control = cpu_to_le16(fc); in hostap_data_start_xmit()
243 memcpy(skb_push(skb, hdr_len), &hdr, hdr_len); in hostap_data_start_xmit()
245 memcpy(skb_put(skb, ETH_ALEN), &hdr.addr4, ETH_ALEN); in hostap_data_start_xmit()
274 struct ieee80211_hdr *hdr; in hostap_mgmt_start_xmit() local
296 hdr = (struct ieee80211_hdr *) skb->data; in hostap_mgmt_start_xmit()
297 fc = le16_to_cpu(hdr->frame_control); in hostap_mgmt_start_xmit()
298 if (ieee80211_is_data(hdr->frame_control) && in hostap_mgmt_start_xmit()
319 struct ieee80211_hdr *hdr; in hostap_tx_encrypt() local
332 hdr = (struct ieee80211_hdr *) skb->data; in hostap_tx_encrypt()
336 local->dev->name, hdr->addr1); in hostap_tx_encrypt()
357 hdr = (struct ieee80211_hdr *) skb->data; in hostap_tx_encrypt()
358 hdr_len = hostap_80211_get_hdrlen(hdr->frame_control); in hostap_tx_encrypt()
392 struct ieee80211_hdr *hdr; in hostap_master_start_xmit() local
435 hdr = (struct ieee80211_hdr *) skb->data; in hostap_master_start_xmit()
436 fc = le16_to_cpu(hdr->frame_control); in hostap_master_start_xmit()
442 ieee80211_is_data(hdr->frame_control) && in hostap_master_start_xmit()
477 hdr->frame_control = cpu_to_le16(fc); in hostap_master_start_xmit()
480 if (!ieee80211_is_data(hdr->frame_control)) { in hostap_master_start_xmit()
501 hdr->frame_control = cpu_to_le16(fc); in hostap_master_start_xmit()
503 ieee80211_is_data(hdr->frame_control) && in hostap_master_start_xmit()