Lines Matching refs:mgmt
48 struct ieee80211_mgmt *mgmt; in ieee80211_ibss_build_presp() local
76 mgmt = (void *) presp->head; in ieee80211_ibss_build_presp()
77 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_ibss_build_presp()
79 eth_broadcast_addr(mgmt->da); in ieee80211_ibss_build_presp()
80 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_ibss_build_presp()
81 memcpy(mgmt->bssid, ifibss->bssid, ETH_ALEN); in ieee80211_ibss_build_presp()
82 mgmt->u.beacon.beacon_int = cpu_to_le16(beacon_int); in ieee80211_ibss_build_presp()
83 mgmt->u.beacon.timestamp = cpu_to_le64(tsf); in ieee80211_ibss_build_presp()
84 mgmt->u.beacon.capab_info = cpu_to_le16(capability); in ieee80211_ibss_build_presp()
86 pos = (u8 *)mgmt + offsetof(struct ieee80211_mgmt, u.beacon.variable); in ieee80211_ibss_build_presp()
227 struct ieee80211_mgmt *mgmt; in __ieee80211_sta_join_ibss() local
323 mgmt = (void *)presp->head; in __ieee80211_sta_join_ibss()
386 bss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta, mgmt, in __ieee80211_sta_join_ibss()
907 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_mgmt_spectrum_mgmt() argument
917 if (mgmt->u.action.u.measurement.action_code != in ieee80211_rx_mgmt_spectrum_mgmt()
922 sizeof(mgmt->u.action.u.chan_switch); in ieee80211_rx_mgmt_spectrum_mgmt()
931 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_deauth_ibss() argument
934 u16 reason = le16_to_cpu(mgmt->u.deauth.reason_code); in ieee80211_rx_mgmt_deauth_ibss()
939 ibss_dbg(sdata, "RX DeAuth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_deauth_ibss()
940 ibss_dbg(sdata, "\tBSSID=%pM (reason: %d)\n", mgmt->bssid, reason); in ieee80211_rx_mgmt_deauth_ibss()
941 sta_info_destroy_addr(sdata, mgmt->sa); in ieee80211_rx_mgmt_deauth_ibss()
945 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_auth_ibss() argument
955 auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); in ieee80211_rx_mgmt_auth_ibss()
956 auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); in ieee80211_rx_mgmt_auth_ibss()
958 ibss_dbg(sdata, "RX Auth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_auth_ibss()
960 mgmt->bssid, auth_transaction); in ieee80211_rx_mgmt_auth_ibss()
972 mgmt->sa, sdata->u.ibss.bssid, NULL, 0, 0, 0); in ieee80211_rx_mgmt_auth_ibss()
976 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_update_sta_info() argument
992 if (!ether_addr_equal(mgmt->bssid, sdata->u.ibss.bssid)) in ieee80211_update_sta_info()
1000 sta = sta_info_get(sdata, mgmt->sa); in ieee80211_update_sta_info()
1027 sta = ieee80211_ibss_add_sta(sdata, mgmt->bssid, in ieee80211_update_sta_info()
1028 mgmt->sa, supp_rates); in ieee80211_update_sta_info()
1102 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_bss_info() argument
1118 ieee80211_update_sta_info(sdata, mgmt, len, rx_status, elems, channel); in ieee80211_rx_bss_info()
1120 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, channel); in ieee80211_rx_bss_info()
1127 beacon_timestamp = le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_bss_info()
1173 mgmt->sa, mgmt->bssid, in ieee80211_rx_bss_info()
1183 mgmt->bssid); in ieee80211_rx_bss_info()
1186 ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, in ieee80211_rx_bss_info()
1523 struct ieee80211_mgmt *mgmt = (void *)req->data; in ieee80211_rx_mgmt_probe_req() local
1541 ibss_dbg(sdata, "RX ProbeReq SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_probe_req()
1543 mgmt->bssid, tx_last_beacon); in ieee80211_rx_mgmt_probe_req()
1545 if (!tx_last_beacon && is_multicast_ether_addr(mgmt->da)) in ieee80211_rx_mgmt_probe_req()
1548 if (!ether_addr_equal(mgmt->bssid, ifibss->bssid) && in ieee80211_rx_mgmt_probe_req()
1549 !is_broadcast_ether_addr(mgmt->bssid)) in ieee80211_rx_mgmt_probe_req()
1552 end = ((u8 *) mgmt) + len; in ieee80211_rx_mgmt_probe_req()
1553 pos = mgmt->u.probe_req.variable; in ieee80211_rx_mgmt_probe_req()
1557 mgmt->sa); in ieee80211_rx_mgmt_probe_req()
1575 memcpy(((struct ieee80211_mgmt *) skb->data)->da, mgmt->sa, ETH_ALEN); in ieee80211_rx_mgmt_probe_req()
1576 ibss_dbg(sdata, "Sending ProbeResp to %pM\n", mgmt->sa); in ieee80211_rx_mgmt_probe_req()
1588 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_mgmt_probe_beacon() argument
1594 BUILD_BUG_ON(offsetof(typeof(mgmt->u.probe_resp), variable) != in ieee80211_rx_mgmt_probe_beacon()
1595 offsetof(typeof(mgmt->u.beacon), variable)); in ieee80211_rx_mgmt_probe_beacon()
1601 baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; in ieee80211_rx_mgmt_probe_beacon()
1605 elems = ieee802_11_parse_elems(mgmt->u.probe_resp.variable, in ieee80211_rx_mgmt_probe_beacon()
1609 ieee80211_rx_bss_info(sdata, mgmt, len, rx_status, elems); in ieee80211_rx_mgmt_probe_beacon()
1618 struct ieee80211_mgmt *mgmt; in ieee80211_ibss_rx_queued_mgmt() local
1624 mgmt = (struct ieee80211_mgmt *) skb->data; in ieee80211_ibss_rx_queued_mgmt()
1625 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_ibss_rx_queued_mgmt()
1638 ieee80211_rx_mgmt_probe_beacon(sdata, mgmt, skb->len, in ieee80211_ibss_rx_queued_mgmt()
1642 ieee80211_rx_mgmt_auth_ibss(sdata, mgmt, skb->len); in ieee80211_ibss_rx_queued_mgmt()
1645 ieee80211_rx_mgmt_deauth_ibss(sdata, mgmt, skb->len); in ieee80211_ibss_rx_queued_mgmt()
1648 switch (mgmt->u.action.category) { in ieee80211_ibss_rx_queued_mgmt()
1658 mgmt->u.action.u.chan_switch.variable, in ieee80211_ibss_rx_queued_mgmt()
1662 ieee80211_rx_mgmt_spectrum_mgmt(sdata, mgmt, in ieee80211_ibss_rx_queued_mgmt()