Lines Matching defs:hdr

215 	struct ieee80211_hdr hdr;
233 hdr.frame_control = cpu_to_le16(frame_control);
234 hdr.seq_ctrl = cpu_to_le16(le32_get_bits(rxd[10], MT_RXD10_SEQ_CTRL));
235 hdr.duration_id = 0;
237 ether_addr_copy(hdr.addr1, vif->addr);
238 ether_addr_copy(hdr.addr2, sta->addr);
242 ether_addr_copy(hdr.addr3, vif->bss_conf.bssid);
245 ether_addr_copy(hdr.addr3, eth_hdr->h_source);
248 ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
251 ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
252 ether_addr_copy(hdr.addr4, eth_hdr->h_source);
267 if (ieee80211_has_order(hdr.frame_control))
270 if (ieee80211_is_data_qos(hdr.frame_control)) {
278 if (ieee80211_has_a4(hdr.frame_control))
279 memcpy(skb_push(skb, sizeof(hdr)), &hdr, sizeof(hdr));
281 memcpy(skb_push(skb, sizeof(hdr) - 6), &hdr, sizeof(hdr) - 6);
659 struct ieee80211_hdr *hdr;
667 hdr = mt76_skb_get_hdr(skb);
668 fc = hdr->frame_control;
670 u8 *qos = ieee80211_get_qos_ctl(hdr);
672 seq_ctrl = le16_to_cpu(hdr->seq_ctrl);
744 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
747 bool multicast = is_multicast_ether_addr(hdr->addr1);
749 __le16 fc = hdr->frame_control;
757 else if (ieee80211_is_mgmt(hdr->frame_control))
792 u16 seqno = le16_to_cpu(hdr->seq_ctrl);
794 if (ieee80211_is_back_req(hdr->frame_control)) {
891 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
892 bool mcast = ieee80211_is_data(hdr->frame_control) &&
893 is_multicast_ether_addr(hdr->addr1);
916 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data;
965 if (!is_8023 && ieee80211_is_mgmt(hdr->frame_control))
1034 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
1036 fc = le16_to_cpu(hdr->frame_control) &
2001 struct mt7996_mem_hdr *hdr;
2036 hdr = (void *)buf;
2037 buf += sizeof(*hdr);
2038 buf_len -= sizeof(*hdr);
2043 hdr->start = mem_region->start;
2044 hdr->len = mem_region->len;