Home | History | Annotate | Download | only in drivers

Lines Matching defs:hdr

61 	struct ieee80211_hdr *hdr;
70 hdr = (struct ieee80211_hdr *) buf;
71 fc = le_to_host16(hdr->frame_control);
78 sa = hdr->addr2;
80 event.rx_from_unknown.bssid = get_hdr_bssid(hdr, len);
84 pos = (u8 *) (hdr + 1);
85 left = len - sizeof(*hdr);
122 struct ieee80211_hdr *hdr;
126 hdr = (struct ieee80211_hdr *) buf;
127 fc = le_to_host16(hdr->frame_control);
132 event.tx_status.dst = hdr->addr1;
142 struct ieee80211_hdr *hdr;
156 hdr = (struct ieee80211_hdr *) buf;
157 fc = le_to_host16(hdr->frame_control);
270 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) msg;
274 hdr->frame_control |= host_to_le16(BIT(1));
276 hdr->frame_control &= ~host_to_le16(BIT(1));
287 struct ieee80211_hdr *hdr;
292 len = sizeof(*hdr) + sizeof(rfc1042_header) + 2 + data_len;
293 hdr = os_zalloc(len);
294 if (hdr == NULL) {
300 hdr->frame_control =
302 hdr->frame_control |= host_to_le16(WLAN_FC_FROMDS);
304 hdr->frame_control |= host_to_le16(WLAN_FC_ISWEP);
305 memcpy(hdr->IEEE80211_DA_FROMDS, addr, ETH_ALEN);
306 memcpy(hdr->IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN);
307 memcpy(hdr->IEEE80211_SA_FROMDS, own_addr, ETH_ALEN);
309 pos = (u8 *) (hdr + 1);
316 res = hostap_send_mlme(drv, (u8 *) hdr, len, 0);
322 free(hdr);
1143 struct ieee80211_hdr hdr;
1145 os_memset(&hdr, 0, sizeof(hdr));
1154 hdr.frame_control = IEEE80211_FC(WLAN_FC_TYPE_DATA,
1157 hdr.frame_control |=
1159 os_memcpy(hdr.IEEE80211_DA_FROMDS, addr, ETH_ALEN);
1160 os_memcpy(hdr.IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN);
1161 os_memcpy(hdr.IEEE80211_SA_FROMDS, own_addr, ETH_ALEN);
1163 hostap_send_mlme(priv, (u8 *)&hdr, sizeof(hdr), 0);