Home | History | Annotate | Download | only in drivers

Lines Matching defs:mgmt

739 	const struct ieee80211_mgmt *mgmt;
745 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.probe_req))
747 mgmt = (const struct ieee80211_mgmt *) buf;
749 fc = le_to_host16(mgmt->frame_control);
755 event.rx_probe_req.sa = mgmt->sa;
756 event.rx_probe_req.da = mgmt->da;
757 event.rx_probe_req.bssid = mgmt->bssid;
758 event.rx_probe_req.ie = mgmt->u.probe_req.variable;
760 len - (IEEE80211_HDRLEN + sizeof(mgmt->u.probe_req));
771 const struct ieee80211_mgmt *mgmt;
780 mgmt = (const struct ieee80211_mgmt *) buf;
782 fc = le_to_host16(mgmt->frame_control);
791 if (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) != 0) {
798 if (len - IEEE80211_HDRLEN < sizeof(mgmt->u.assoc_req))
800 ielen = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req));
801 iebuf = mgmt->u.assoc_req.variable;
802 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 0);
805 if (len - IEEE80211_HDRLEN < sizeof(mgmt->u.reassoc_req))
807 ielen = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.reassoc_req));
808 iebuf = mgmt->u.reassoc_req.variable;
809 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 1);
812 if (&mgmt->u.action.category > buf + len)
815 event.rx_action.da = mgmt->da;
816 event.rx_action.sa = mgmt->sa;
817 event.rx_action.bssid = mgmt->bssid;
818 event.rx_action.category = mgmt->u.action.category;
819 event.rx_action.data = &mgmt->u.action.category;
824 if (len - IEEE80211_HDRLEN < sizeof(mgmt->u.auth))
827 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN);
828 os_memcpy(event.auth.bssid, mgmt->bssid, ETH_ALEN);
829 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg);
831 le_to_host16(mgmt->u.auth.status_code);
833 le_to_host16(mgmt->u.auth.auth_transaction);
834 event.auth.ies = mgmt->u.auth.variable;
836 sizeof(mgmt->u.auth);
850 const struct ieee80211_mgmt *mgmt;
856 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.action.category) +
857 sizeof(mgmt->u.action.u.public_action))
860 mgmt = (const struct ieee80211_mgmt *) buf;
862 fc = le_to_host16(mgmt->frame_control);
865 mgmt->u.action.category != WLAN_ACTION_PUBLIC)
871 event.rx_mgmt.frame = (const u8 *) mgmt;
883 const struct ieee80211_mgmt *mgmt;
890 mgmt = (const struct ieee80211_mgmt *) buf;
892 fc = le_to_host16(mgmt->frame_control);
901 if (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) != 0) {
909 if (&mgmt->u.action.category > buf + len)
912 event.rx_action.da = mgmt->da;
913 event.rx_action.sa = mgmt->sa;
914 event.rx_action.bssid = mgmt->bssid;
915 event.rx_action.category = mgmt->u.action.category;
916 event.rx_action.data = &mgmt->u.action.category;
1330 const struct ieee80211_mgmt *mgmt;
1367 mgmt = (void *) &tbuf[sizeof(freq) + sizeof(frame_type)];
1371 fc = le_to_host16(mgmt->frame_control);
1379 event.rx_mgmt.frame = (const u8 *) mgmt;
1843 const struct ieee80211_mgmt *mgmt;
1846 mgmt = (const struct ieee80211_mgmt *) frm;
1848 (unsigned long) data_len, MAC2STR(mgmt->da));
1850 memcpy(mgmt_frm->macaddr, (u8 *)mgmt->da, IEEE80211_ADDR_LEN);