• Home
  • Raw
  • Download

Lines Matching refs:hdr

592 	struct ieee80211_hdr_4addr *hdr;  in hostap_ap_tx_cb()  local
599 hdr = (struct ieee80211_hdr_4addr *) skb->data; in hostap_ap_tx_cb()
600 fc = le16_to_cpu(hdr->frame_ctl); in hostap_ap_tx_cb()
607 hdr->frame_ctl = cpu_to_le16(fc); in hostap_ap_tx_cb()
624 struct ieee80211_hdr_4addr *hdr; in hostap_ap_tx_cb_auth() local
635 hdr = (struct ieee80211_hdr_4addr *) skb->data; in hostap_ap_tx_cb_auth()
636 fc = le16_to_cpu(hdr->frame_ctl); in hostap_ap_tx_cb_auth()
657 sta = ap_get_sta(ap, hdr->addr1); in hostap_ap_tx_cb_auth()
682 dev->name, hdr->addr1, in hostap_ap_tx_cb_auth()
694 struct ieee80211_hdr_4addr *hdr; in hostap_ap_tx_cb_assoc() local
705 hdr = (struct ieee80211_hdr_4addr *) skb->data; in hostap_ap_tx_cb_assoc()
706 fc = le16_to_cpu(hdr->frame_ctl); in hostap_ap_tx_cb_assoc()
723 sta = ap_get_sta(ap, hdr->addr1); in hostap_ap_tx_cb_assoc()
750 dev->name, hdr->addr1, txt); in hostap_ap_tx_cb_assoc()
760 struct ieee80211_hdr_4addr *hdr; in hostap_ap_tx_cb_poll() local
765 hdr = (struct ieee80211_hdr_4addr *) skb->data; in hostap_ap_tx_cb_poll()
768 sta = ap_get_sta(ap, hdr->addr1); in hostap_ap_tx_cb_poll()
775 ap->local->dev->name, hdr->addr1); in hostap_ap_tx_cb_poll()
920 struct ieee80211_hdr_4addr *hdr; in prism2_send_mgmt() local
937 skb = dev_alloc_skb(sizeof(*hdr) + body_len); in prism2_send_mgmt()
946 hdr = (struct ieee80211_hdr_4addr *) skb_put(skb, hdrlen); in prism2_send_mgmt()
950 memset(hdr, 0, hdrlen); in prism2_send_mgmt()
956 memcpy(hdr->addr1, addr, ETH_ALEN); /* DA / RA */ in prism2_send_mgmt()
959 memcpy(hdr->addr2, dev->dev_addr, ETH_ALEN); /* BSSID */ in prism2_send_mgmt()
960 memcpy(hdr->addr3, dev->dev_addr, ETH_ALEN); /* SA */ in prism2_send_mgmt()
963 memset(hdr->addr2, 0, ETH_ALEN); in prism2_send_mgmt()
964 memset(hdr->addr3, 0, ETH_ALEN); in prism2_send_mgmt()
966 memcpy(hdr->addr2, dev->dev_addr, ETH_ALEN); /* SA */ in prism2_send_mgmt()
967 memcpy(hdr->addr3, dev->dev_addr, ETH_ALEN); /* BSSID */ in prism2_send_mgmt()
970 hdr->frame_ctl = cpu_to_le16(fc); in prism2_send_mgmt()
1287 struct ieee80211_hdr_4addr *hdr = (struct ieee80211_hdr_4addr *) skb->data; in handle_authen() local
1301 fc = le16_to_cpu(hdr->frame_ctl); in handle_authen()
1306 "(len=%d) from %pM\n", dev->name, len, hdr->addr2); in handle_authen()
1311 sta = ap_get_sta(local->ap, hdr->addr2); in handle_authen()
1333 if (memcmp(dev->dev_addr, hdr->addr2, ETH_ALEN) == 0 || in handle_authen()
1334 ap_control_mac_deny(&ap->mac_restrictions, hdr->addr2)) { in handle_authen()
1404 sta = ap_add_sta(local->ap, hdr->addr2); in handle_authen()
1479 body, olen, hdr->addr2, ap->tx_callback_auth); in handle_authen()
1489 dev->name, hdr->addr2, in handle_authen()
1501 struct ieee80211_hdr_4addr *hdr = (struct ieee80211_hdr_4addr *) skb->data; in handle_assoc() local
1516 dev->name, len, reassoc, hdr->addr2); in handle_assoc()
1521 sta = ap_get_sta(local->ap, hdr->addr2); in handle_assoc()
1595 dev->name, hdr->addr2, left); in handle_assoc()
1681 hdr->addr2, in handle_assoc()
1697 hdr->addr2, in handle_assoc()
1710 struct ieee80211_hdr_4addr *hdr = (struct ieee80211_hdr_4addr *) skb->data; in handle_deauth() local
1728 "reason_code=%d\n", dev->name, hdr->addr2, in handle_deauth()
1732 sta = ap_get_sta(local->ap, hdr->addr2); in handle_deauth()
1742 hdr->addr2, reason_code); in handle_deauth()
1752 struct ieee80211_hdr_4addr *hdr = (struct ieee80211_hdr_4addr *) skb->data; in handle_disassoc() local
1770 "reason_code=%d\n", dev->name, hdr->addr2, in handle_disassoc()
1774 sta = ap_get_sta(local->ap, hdr->addr2); in handle_disassoc()
1784 dev->name, hdr->addr2, reason_code); in handle_disassoc()
1791 struct ieee80211_hdr_4addr *hdr) in ap_handle_data_nullfunc() argument
1802 NULL, 0, hdr->addr2, 0); in ap_handle_data_nullfunc()
1808 struct ieee80211_hdr_4addr *hdr) in ap_handle_dropped_data() argument
1815 sta = ap_get_sta(local->ap, hdr->addr2); in ap_handle_dropped_data()
1830 (char *) &reason, sizeof(reason), hdr->addr2, 0); in ap_handle_dropped_data()
1866 struct ieee80211_hdr_4addr *hdr, in handle_pspoll() argument
1875 hdr->addr1, hdr->addr2, in handle_pspoll()
1876 !!(le16_to_cpu(hdr->frame_ctl) & IEEE80211_FCTL_PM)); in handle_pspoll()
1878 if (memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN)) { in handle_pspoll()
1881 hdr->addr1); in handle_pspoll()
1885 aid = le16_to_cpu(hdr->duration_id); in handle_pspoll()
1898 sta = ap_get_sta(local->ap, hdr->addr2); in handle_pspoll()
1987 struct ieee80211_hdr_4addr *hdr = (struct ieee80211_hdr_4addr *) skb->data; in handle_beacon() local
2085 sta = ap_get_sta(local->ap, hdr->addr2); in handle_beacon()
2093 sta = ap_add_sta(local->ap, hdr->addr2); in handle_beacon()
2146 struct ieee80211_hdr_4addr *hdr; in handle_ap_item() local
2150 hdr = (struct ieee80211_hdr_4addr *) skb->data; in handle_ap_item()
2151 fc = le16_to_cpu(hdr->frame_ctl); in handle_ap_item()
2165 ap_handle_dropped_data(local, hdr); in handle_ap_item()
2173 if (memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN)) { in handle_ap_item()
2175 " not own MAC\n", hdr->addr1); in handle_ap_item()
2181 ap_handle_data_nullfunc(local, hdr); in handle_ap_item()
2183 ap_handle_dropped_data(local, hdr); in handle_ap_item()
2194 handle_pspoll(local, hdr, rx_stats); in handle_ap_item()
2210 if (memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN)) { in handle_ap_item()
2212 " not own MAC\n", hdr->addr1); in handle_ap_item()
2216 if (memcmp(hdr->addr3, dev->dev_addr, ETH_ALEN)) { in handle_ap_item()
2218 " not own MAC\n", hdr->addr3); in handle_ap_item()
2266 struct ieee80211_hdr_4addr *hdr; in hostap_rx() local
2276 hdr = (struct ieee80211_hdr_4addr *) skb->data; in hostap_rx()
2277 fc = le16_to_cpu(hdr->frame_ctl); in hostap_rx()
2297 struct ieee80211_hdr_4addr *hdr; in schedule_packet_send() local
2310 hdr = (struct ieee80211_hdr_4addr *) skb_put(skb, 16); in schedule_packet_send()
2313 hdr->frame_ctl = __constant_cpu_to_le16( in schedule_packet_send()
2315 memcpy(hdr->addr1, local->dev->dev_addr, ETH_ALEN); in schedule_packet_send()
2316 memcpy(hdr->addr2, sta->addr, ETH_ALEN); in schedule_packet_send()
2317 hdr->duration_id = cpu_to_le16(sta->aid | BIT(15) | BIT(14)); in schedule_packet_send()
2692 struct ieee80211_hdr_4addr *hdr; in hostap_handle_sta_tx() local
2701 hdr = (struct ieee80211_hdr_4addr *) skb->data; in hostap_handle_sta_tx()
2703 if (hdr->addr1[0] & 0x01) { in hostap_handle_sta_tx()
2712 sta = ap_get_sta(local->ap, hdr->addr1); in hostap_handle_sta_tx()
2729 "STA %pM\n", hdr->addr1); in hostap_handle_sta_tx()
2756 hdr->frame_ctl |= in hostap_handle_sta_tx()
2831 struct ieee80211_hdr_4addr *hdr; in hostap_handle_sta_tx_exc() local
2834 hdr = (struct ieee80211_hdr_4addr *) skb->data; in hostap_handle_sta_tx_exc()
2838 sta = ap_get_sta(local->ap, hdr->addr1); in hostap_handle_sta_tx_exc()
2843 local->dev->name, hdr->addr1, jiffies); in hostap_handle_sta_tx_exc()
2902 int hostap_update_sta_ps(local_info_t *local, struct ieee80211_hdr_4addr *hdr) in hostap_update_sta_ps() argument
2908 sta = ap_get_sta(local->ap, hdr->addr2); in hostap_update_sta_ps()
2916 fc = le16_to_cpu(hdr->frame_ctl); in hostap_update_sta_ps()
2935 struct ieee80211_hdr_4addr *hdr; in hostap_handle_sta_rx() local
2940 hdr = (struct ieee80211_hdr_4addr *) skb->data; in hostap_handle_sta_rx()
2942 fc = le16_to_cpu(hdr->frame_ctl); in hostap_handle_sta_rx()
2947 sta = ap_get_sta(local->ap, hdr->addr2); in hostap_handle_sta_rx()
2968 dev->name, hdr->addr2, in hostap_handle_sta_rx()
2980 if (memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN) == 0) { in hostap_handle_sta_rx()
2989 memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN) == 0) { in hostap_handle_sta_rx()
3003 dev->name, hdr->addr2); in hostap_handle_sta_rx()
3018 if (memcmp(hdr->addr3, dev->dev_addr, ETH_ALEN) == 0) { in hostap_handle_sta_rx()
3022 hdr->addr2, type >> 2, stype >> 4); in hostap_handle_sta_rx()
3067 struct ieee80211_hdr_4addr *hdr, in hostap_handle_sta_crypto() argument
3074 sta = ap_get_sta(local->ap, hdr->addr2); in hostap_handle_sta_crypto()
3169 struct ieee80211_hdr_4addr *hdr, in hostap_update_rx_stats() argument
3178 sta = ap_get_sta(ap, hdr->addr2); in hostap_update_rx_stats()