Home | History | Annotate | Download | only in drivers

Lines Matching refs:hdr

68 	struct ieee80211_hdr *hdr;
77 hdr = (struct ieee80211_hdr *) buf;
78 fc = le_to_host16(hdr->frame_control);
85 sa = hdr->addr2;
91 pos = (u8 *) (hdr + 1);
92 left = len - sizeof(*hdr);
129 struct ieee80211_hdr *hdr;
133 hdr = (struct ieee80211_hdr *) buf;
134 fc = le_to_host16(hdr->frame_control);
139 event.tx_status.dst = hdr->addr1;
149 struct ieee80211_hdr *hdr;
164 hdr = (struct ieee80211_hdr *) buf;
165 fc = le_to_host16(hdr->frame_control);
279 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) msg;
283 hdr->frame_control |= host_to_le16(BIT(1));
285 hdr->frame_control &= ~host_to_le16(BIT(1));
296 struct ieee80211_hdr *hdr;
301 len = sizeof(*hdr) + sizeof(rfc1042_header) + 2 + data_len;
302 hdr = os_zalloc(len);
303 if (hdr == NULL) {
309 hdr->frame_control =
311 hdr->frame_control |= host_to_le16(WLAN_FC_FROMDS);
313 hdr->frame_control |= host_to_le16(WLAN_FC_ISWEP);
314 memcpy(hdr->IEEE80211_DA_FROMDS, addr, ETH_ALEN);
315 memcpy(hdr->IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN);
316 memcpy(hdr->IEEE80211_SA_FROMDS, own_addr, ETH_ALEN);
318 pos = (u8 *) (hdr + 1);
325 res = hostap_send_mlme(drv, (u8 *) hdr, len);
331 free(hdr);