Lines Matching refs:hdr
1351 const struct ieee80211_hdr *hdr;
1371 hdr = (const struct ieee80211_hdr *) frame;
1372 fc = le_to_host16(hdr->frame_control);
1377 event.tx_status.dst = hdr->addr1;
6373 struct ieee80211_hdr *hdr;
6377 hdr = (struct ieee80211_hdr *) buf;
6378 fc = le_to_host16(hdr->frame_control);
6383 event.tx_status.dst = hdr->addr1;
6394 struct ieee80211_hdr *hdr = (void *)buf;
6398 if (len < sizeof(*hdr))
6401 fc = le_to_host16(hdr->frame_control);
6404 event.rx_from_unknown.bssid = get_hdr_bssid(hdr, len);
6405 event.rx_from_unknown.addr = hdr->addr2;
6415 struct ieee80211_hdr *hdr;
6419 hdr = (struct ieee80211_hdr *) buf;
6420 fc = le_to_host16(hdr->frame_control);
6874 struct ieee80211_hdr *hdr;
6886 len = sizeof(*hdr) + (qos ? 2 : 0) + sizeof(rfc1042_header) + 2 +
6888 hdr = os_zalloc(len);
6889 if (hdr == NULL) {
6895 hdr->frame_control =
6897 hdr->frame_control |= host_to_le16(WLAN_FC_FROMDS);
6899 hdr->frame_control |= host_to_le16(WLAN_FC_ISWEP);
6901 hdr->frame_control |=
6905 memcpy(hdr->IEEE80211_DA_FROMDS, addr, ETH_ALEN);
6906 memcpy(hdr->IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN);
6907 memcpy(hdr->IEEE80211_SA_FROMDS, own_addr, ETH_ALEN);
6908 pos = (u8 *) (hdr + 1);
6923 res = wpa_driver_nl80211_send_frame(bss, (u8 *) hdr, len, encrypt, 0,
6930 os_free(hdr);
8746 struct ieee80211_hdr *hdr;
8756 hdr = (struct ieee80211_hdr *) buf;
8757 hdr->frame_control =
8759 os_memcpy(hdr->addr1, dst, ETH_ALEN);
8760 os_memcpy(hdr->addr2, src, ETH_ALEN);
8761 os_memcpy(hdr->addr3, bssid, ETH_ALEN);
9374 struct ieee80211_hdr hdr;
9384 nulldata.hdr.frame_control =
9389 nulldata.hdr.frame_control =
9395 nulldata.hdr.frame_control |= host_to_le16(WLAN_FC_FROMDS);
9396 os_memcpy(nulldata.hdr.IEEE80211_DA_FROMDS, addr, ETH_ALEN);
9397 os_memcpy(nulldata.hdr.IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN);
9398 os_memcpy(nulldata.hdr.IEEE80211_SA_FROMDS, own_addr, ETH_ALEN);