Home | History | Annotate | Download | only in ap

Lines Matching refs:hdr

283 static const u8 * get_hdr_bssid(const struct ieee80211_hdr *hdr, size_t len)
294 fc = le_to_host16(hdr->frame_control);
305 return hdr->addr1;
307 return hdr->addr2;
314 return hdr->addr1;
316 return hdr->addr3;
348 const struct ieee80211_hdr *hdr = (const struct ieee80211_hdr *) frame;
349 u16 fc = le_to_host16(hdr->frame_control);
350 hapd = get_hapd_bssid(hapd->iface, get_hdr_bssid(hdr, len));
354 ieee802_11_rx_from_unknown(hapd, hdr->addr2,
363 const struct ieee80211_hdr *hdr;
367 hdr = (const struct ieee80211_hdr *) rx_mgmt->frame;
368 bssid = get_hdr_bssid(hdr, rx_mgmt->frame_len);
375 fc = le_to_host16(hdr->frame_control);
409 struct ieee80211_hdr *hdr;
421 hdr = (struct ieee80211_hdr *) buf;
422 hdr->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
429 hdr->frame_control |= host_to_le16(WLAN_FC_ISWEP);
431 os_memcpy(hdr->addr1, rx_action->da, ETH_ALEN);
432 os_memcpy(hdr->addr2, rx_action->sa, ETH_ALEN);
433 os_memcpy(hdr->addr3, rx_action->bssid, ETH_ALEN);
447 struct ieee80211_hdr *hdr;
448 hdr = (struct ieee80211_hdr *) buf;
449 hapd = get_hapd_bssid(hapd->iface, get_hdr_bssid(hdr, len));