Lines Matching refs:hdr
24 struct ieee80211_hdr *hdr; in hostap_dump_rx_80211() local
27 hdr = (struct ieee80211_hdr *) skb->data; in hostap_dump_rx_80211()
37 fc = le16_to_cpu(hdr->frame_control); in hostap_dump_rx_80211()
49 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), in hostap_dump_rx_80211()
50 le16_to_cpu(hdr->seq_ctrl)); in hostap_dump_rx_80211()
52 printk(KERN_DEBUG " A1=%pM", hdr->addr1); in hostap_dump_rx_80211()
53 printk(" A2=%pM", hdr->addr2); in hostap_dump_rx_80211()
54 printk(" A3=%pM", hdr->addr3); in hostap_dump_rx_80211()
56 printk(" A4=%pM", hdr->addr4); in hostap_dump_rx_80211()
134 struct linux_wlan_ng_prism_hdr *hdr; in prism2_rx_80211() local
135 hdr = skb_push(skb, phdrlen); in prism2_rx_80211()
136 memset(hdr, 0, phdrlen); in prism2_rx_80211()
137 hdr->msgcode = LWNG_CAP_DID_BASE; in prism2_rx_80211()
138 hdr->msglen = sizeof(*hdr); in prism2_rx_80211()
139 memcpy(hdr->devname, dev->name, sizeof(hdr->devname)); in prism2_rx_80211()
141 hdr->f.did = LWNG_CAP_DID_BASE | (i << 12); \ in prism2_rx_80211()
142 hdr->f.status = s; hdr->f.len = l; hdr->f.data = d in prism2_rx_80211()
155 struct linux_wlan_ng_cap_hdr *hdr; in prism2_rx_80211() local
156 hdr = skb_push(skb, phdrlen); in prism2_rx_80211()
157 memset(hdr, 0, phdrlen); in prism2_rx_80211()
158 hdr->version = htonl(LWNG_CAPHDR_VERSION); in prism2_rx_80211()
159 hdr->length = htonl(phdrlen); in prism2_rx_80211()
160 hdr->mactime = __cpu_to_be64(rx_stats->mac_time); in prism2_rx_80211()
161 hdr->hosttime = __cpu_to_be64(jiffies); in prism2_rx_80211()
162 hdr->phytype = htonl(4); /* dss_dot11_b */ in prism2_rx_80211()
163 hdr->channel = htonl(local->channel); in prism2_rx_80211()
164 hdr->datarate = htonl(rx_stats->rate); in prism2_rx_80211()
165 hdr->antenna = htonl(0); /* unknown */ in prism2_rx_80211()
166 hdr->priority = htonl(0); /* unknown */ in prism2_rx_80211()
167 hdr->ssi_type = htonl(3); /* raw */ in prism2_rx_80211()
168 hdr->ssi_signal = htonl(rx_stats->signal); in prism2_rx_80211()
169 hdr->ssi_noise = htonl(rx_stats->noise); in prism2_rx_80211()
170 hdr->preamble = htonl(0); /* unknown */ in prism2_rx_80211()
171 hdr->encoding = htonl(1); /* cck */ in prism2_rx_80211()
173 struct hostap_radiotap_rx *hdr; in prism2_rx_80211() local
174 hdr = skb_push(skb, phdrlen); in prism2_rx_80211()
175 memset(hdr, 0, phdrlen); in prism2_rx_80211()
176 hdr->hdr.it_len = cpu_to_le16(phdrlen); in prism2_rx_80211()
177 hdr->hdr.it_present = in prism2_rx_80211()
183 hdr->tsft = cpu_to_le64(rx_stats->mac_time); in prism2_rx_80211()
184 hdr->chan_freq = cpu_to_le16(freq_list[local->channel - 1]); in prism2_rx_80211()
185 hdr->chan_flags = cpu_to_le16(IEEE80211_CHAN_CCK | in prism2_rx_80211()
187 hdr->rate = rx_stats->rate / 5; in prism2_rx_80211()
188 hdr->dbm_antsignal = rx_stats->signal; in prism2_rx_80211()
189 hdr->dbm_antnoise = rx_stats->noise; in prism2_rx_80211()
251 prism2_frag_cache_get(local_info_t *local, struct ieee80211_hdr *hdr) in prism2_frag_cache_get() argument
258 sc = le16_to_cpu(hdr->seq_ctrl); in prism2_frag_cache_get()
284 memcpy(entry->src_addr, hdr->addr2, ETH_ALEN); in prism2_frag_cache_get()
285 memcpy(entry->dst_addr, hdr->addr1, ETH_ALEN); in prism2_frag_cache_get()
289 entry = prism2_frag_cache_find(local, seq, frag, hdr->addr2, in prism2_frag_cache_get()
290 hdr->addr1); in prism2_frag_cache_get()
303 struct ieee80211_hdr *hdr) in prism2_frag_cache_invalidate() argument
309 sc = le16_to_cpu(hdr->seq_ctrl); in prism2_frag_cache_invalidate()
312 entry = prism2_frag_cache_find(local, seq, -1, hdr->addr2, hdr->addr1); in prism2_frag_cache_invalidate()
553 hostap_rx_frame_wds(local_info_t *local, struct ieee80211_hdr *hdr, u16 fc, in hostap_rx_frame_wds() argument
565 if (!ether_addr_equal(hdr->addr1, local->dev->dev_addr) && in hostap_rx_frame_wds()
566 (hdr->addr1[0] != 0xff || hdr->addr1[1] != 0xff || in hostap_rx_frame_wds()
567 hdr->addr1[2] != 0xff || hdr->addr1[3] != 0xff || in hostap_rx_frame_wds()
568 hdr->addr1[4] != 0xff || hdr->addr1[5] != 0xff)) { in hostap_rx_frame_wds()
574 hdr->addr1); in hostap_rx_frame_wds()
579 *wds = prism2_rx_get_wds(local, hdr->addr2); in hostap_rx_frame_wds()
583 memcmp(hdr->addr2, local->bssid, ETH_ALEN) != 0)) { in hostap_rx_frame_wds()
588 local->dev->name, hdr->addr2); in hostap_rx_frame_wds()
590 hostap_wds_link_oper(local, hdr->addr2, WDS_ADD); in hostap_rx_frame_wds()
595 hostap_is_sta_assoc(local->ap, hdr->addr2)) { in hostap_rx_frame_wds()
612 struct ieee80211_hdr *hdr; in hostap_is_eapol_frame() local
618 hdr = (struct ieee80211_hdr *) skb->data; in hostap_is_eapol_frame()
619 fc = le16_to_cpu(hdr->frame_control); in hostap_is_eapol_frame()
624 ether_addr_equal(hdr->addr1, dev->dev_addr) && in hostap_is_eapol_frame()
625 ether_addr_equal(hdr->addr3, dev->dev_addr)) { in hostap_is_eapol_frame()
629 ether_addr_equal(hdr->addr1, dev->dev_addr)) { in hostap_is_eapol_frame()
652 struct ieee80211_hdr *hdr; in hostap_rx_frame_decrypt() local
658 hdr = (struct ieee80211_hdr *) skb->data; in hostap_rx_frame_decrypt()
659 hdrlen = hostap_80211_get_hdrlen(hdr->frame_control); in hostap_rx_frame_decrypt()
666 local->dev->name, hdr->addr2); in hostap_rx_frame_decrypt()
676 local->dev->name, hdr->addr2, res); in hostap_rx_frame_decrypt()
690 struct ieee80211_hdr *hdr; in hostap_rx_frame_decrypt_msdu() local
696 hdr = (struct ieee80211_hdr *) skb->data; in hostap_rx_frame_decrypt_msdu()
697 hdrlen = hostap_80211_get_hdrlen(hdr->frame_control); in hostap_rx_frame_decrypt_msdu()
705 local->dev->name, hdr->addr2, keyidx); in hostap_rx_frame_decrypt_msdu()
721 struct ieee80211_hdr *hdr; in hostap_80211_rx() local
747 hdr = (struct ieee80211_hdr *) skb->data; in hostap_80211_rx()
752 fc = le16_to_cpu(hdr->frame_control); in hostap_80211_rx()
755 sc = le16_to_cpu(hdr->seq_ctrl); in hostap_80211_rx()
757 hdrlen = hostap_80211_get_hdrlen(hdr->frame_control); in hostap_80211_rx()
770 wireless_spy_update(dev, hdr->addr2, &wstats); in hostap_80211_rx()
773 hostap_update_rx_stats(local->ap, hdr, rx_stats); in hostap_80211_rx()
794 if (!(hdr->addr1[0] & 0x01) || local->bcrx_sta_key) in hostap_80211_rx()
795 (void) hostap_handle_sta_crypto(local, hdr, &crypt, in hostap_80211_rx()
812 local->dev->name, hdr->addr2); in hostap_80211_rx()
826 "from %pM\n", dev->name, hdr->addr2); in hostap_80211_rx()
844 memcpy(dst, hdr->addr1, ETH_ALEN); in hostap_80211_rx()
845 memcpy(src, hdr->addr3, ETH_ALEN); in hostap_80211_rx()
848 memcpy(dst, hdr->addr3, ETH_ALEN); in hostap_80211_rx()
849 memcpy(src, hdr->addr2, ETH_ALEN); in hostap_80211_rx()
854 memcpy(dst, hdr->addr3, ETH_ALEN); in hostap_80211_rx()
855 memcpy(src, hdr->addr4, ETH_ALEN); in hostap_80211_rx()
858 memcpy(dst, hdr->addr1, ETH_ALEN); in hostap_80211_rx()
859 memcpy(src, hdr->addr2, ETH_ALEN); in hostap_80211_rx()
863 if (hostap_rx_frame_wds(local, hdr, fc, &wds)) in hostap_80211_rx()
872 memcmp(hdr->addr2, local->assoc_ap_addr, ETH_ALEN) == 0) { in hostap_80211_rx()
914 hdr = (struct ieee80211_hdr *) skb->data; in hostap_80211_rx()
922 prism2_frag_cache_get(local, hdr); in hostap_80211_rx()
939 prism2_frag_cache_invalidate(local, hdr); in hostap_80211_rx()
968 hdr = (struct ieee80211_hdr *) skb->data; in hostap_80211_rx()
969 prism2_frag_cache_invalidate(local, hdr); in hostap_80211_rx()
979 hdr = (struct ieee80211_hdr *) skb->data; in hostap_80211_rx()
990 local->dev->name, hdr->addr2); in hostap_80211_rx()
1000 dev->name, hdr->addr2); in hostap_80211_rx()