Home | History | Annotate | Download | only in drivers

Lines Matching refs:mgmt

777 	const struct ieee80211_mgmt *mgmt;
783 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.probe_req))
785 mgmt = (const struct ieee80211_mgmt *) buf;
787 fc = le_to_host16(mgmt->frame_control);
793 event.rx_probe_req.sa = mgmt->sa;
794 event.rx_probe_req.da = mgmt->da;
795 event.rx_probe_req.bssid = mgmt->bssid;
796 event.rx_probe_req.ie = mgmt->u.probe_req.variable;
798 len - (IEEE80211_HDRLEN + sizeof(mgmt->u.probe_req));
809 const struct ieee80211_mgmt *mgmt;
818 mgmt = (const struct ieee80211_mgmt *) buf;
820 fc = le_to_host16(mgmt->frame_control);
829 if (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) != 0) {
836 if (len - IEEE80211_HDRLEN < sizeof(mgmt->u.assoc_req))
838 ielen = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req));
839 iebuf = mgmt->u.assoc_req.variable;
840 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 0);
843 if (len - IEEE80211_HDRLEN < sizeof(mgmt->u.reassoc_req))
845 ielen = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.reassoc_req));
846 iebuf = mgmt->u.reassoc_req.variable;
847 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 1);
856 if (len - IEEE80211_HDRLEN < sizeof(mgmt->u.auth))
859 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN);
860 os_memcpy(event.auth.bssid, mgmt->bssid, ETH_ALEN);
861 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg);
863 le_to_host16(mgmt->u.auth.status_code);
865 le_to_host16(mgmt->u.auth.auth_transaction);
866 event.auth.ies = mgmt->u.auth.variable;
868 sizeof(mgmt->u.auth);
882 const struct ieee80211_mgmt *mgmt;
888 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.action.category) +
889 sizeof(mgmt->u.action.u.public_action))
892 mgmt = (const struct ieee80211_mgmt *) buf;
894 fc = le_to_host16(mgmt->frame_control);
897 mgmt->u.action.category != WLAN_ACTION_PUBLIC)
903 event.rx_mgmt.frame = (const u8 *) mgmt;
966 const struct ieee80211_mgmt *mgmt;
973 mgmt = (const struct ieee80211_mgmt *) buf;
975 fc = le_to_host16(mgmt->frame_control);
984 if (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) != 0) {
1405 const struct ieee80211_mgmt *mgmt;
1442 mgmt = (void *) &tbuf[sizeof(freq) + sizeof(frame_type)];
1446 fc = le_to_host16(mgmt->frame_control);
1454 event.rx_mgmt.frame = (const u8 *) mgmt;
1942 const struct ieee80211_mgmt *mgmt;
1945 mgmt = (const struct ieee80211_mgmt *) frm;
1947 (unsigned long) data_len, MAC2STR(mgmt->da));
1949 memcpy(mgmt_frm->macaddr, (u8 *)mgmt->da, IEEE80211_ADDR_LEN);