Lines Matching full: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
324 mgmt = (void *)presp->head; in __ieee80211_sta_join_ibss()
389 bss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta, mgmt, in __ieee80211_sta_join_ibss()
918 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_mgmt_spectrum_mgmt() argument
928 if (mgmt->u.action.u.measurement.action_code != in ieee80211_rx_mgmt_spectrum_mgmt()
933 sizeof(mgmt->u.action.u.chan_switch); in ieee80211_rx_mgmt_spectrum_mgmt()
942 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_deauth_ibss() argument
945 u16 reason = le16_to_cpu(mgmt->u.deauth.reason_code); in ieee80211_rx_mgmt_deauth_ibss()
950 ibss_dbg(sdata, "RX DeAuth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_deauth_ibss()
951 ibss_dbg(sdata, "\tBSSID=%pM (reason: %d)\n", mgmt->bssid, reason); in ieee80211_rx_mgmt_deauth_ibss()
952 sta_info_destroy_addr(sdata, mgmt->sa); in ieee80211_rx_mgmt_deauth_ibss()
956 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_auth_ibss() argument
966 auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); in ieee80211_rx_mgmt_auth_ibss()
967 auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); in ieee80211_rx_mgmt_auth_ibss()
969 ibss_dbg(sdata, "RX Auth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_auth_ibss()
971 mgmt->bssid, auth_transaction); in ieee80211_rx_mgmt_auth_ibss()
983 mgmt->sa, sdata->u.ibss.bssid, NULL, 0, 0, 0); in ieee80211_rx_mgmt_auth_ibss()
987 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_update_sta_info() argument
1003 if (!ether_addr_equal(mgmt->bssid, sdata->u.ibss.bssid)) in ieee80211_update_sta_info()
1011 sta = sta_info_get(sdata, mgmt->sa); in ieee80211_update_sta_info()
1038 sta = ieee80211_ibss_add_sta(sdata, mgmt->bssid, in ieee80211_update_sta_info()
1039 mgmt->sa, supp_rates); in ieee80211_update_sta_info()
1112 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_bss_info() argument
1128 ieee80211_update_sta_info(sdata, mgmt, len, rx_status, elems, channel); in ieee80211_rx_bss_info()
1130 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, channel); in ieee80211_rx_bss_info()
1137 beacon_timestamp = le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_bss_info()
1183 mgmt->sa, mgmt->bssid, in ieee80211_rx_bss_info()
1193 mgmt->bssid); in ieee80211_rx_bss_info()
1196 ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, in ieee80211_rx_bss_info()
1533 struct ieee80211_mgmt *mgmt = (void *)req->data; in ieee80211_rx_mgmt_probe_req() local
1552 ibss_dbg(sdata, "RX ProbeReq SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_probe_req()
1554 mgmt->bssid, tx_last_beacon); in ieee80211_rx_mgmt_probe_req()
1556 if (!tx_last_beacon && is_multicast_ether_addr(mgmt->da)) in ieee80211_rx_mgmt_probe_req()
1559 if (!ether_addr_equal(mgmt->bssid, ifibss->bssid) && in ieee80211_rx_mgmt_probe_req()
1560 !is_broadcast_ether_addr(mgmt->bssid)) in ieee80211_rx_mgmt_probe_req()
1563 end = ((u8 *) mgmt) + len; in ieee80211_rx_mgmt_probe_req()
1564 pos = mgmt->u.probe_req.variable; in ieee80211_rx_mgmt_probe_req()
1568 mgmt->sa); in ieee80211_rx_mgmt_probe_req()
1586 memcpy(((struct ieee80211_mgmt *) skb->data)->da, mgmt->sa, ETH_ALEN); in ieee80211_rx_mgmt_probe_req()
1587 ibss_dbg(sdata, "Sending ProbeResp to %pM\n", mgmt->sa); in ieee80211_rx_mgmt_probe_req()
1599 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_mgmt_probe_beacon() argument
1605 BUILD_BUG_ON(offsetof(typeof(mgmt->u.probe_resp), variable) != in ieee80211_rx_mgmt_probe_beacon()
1606 offsetof(typeof(mgmt->u.beacon), variable)); in ieee80211_rx_mgmt_probe_beacon()
1612 baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; in ieee80211_rx_mgmt_probe_beacon()
1616 ieee802_11_parse_elems(mgmt->u.probe_resp.variable, len - baselen, in ieee80211_rx_mgmt_probe_beacon()
1617 false, &elems, mgmt->bssid, NULL); in ieee80211_rx_mgmt_probe_beacon()
1619 ieee80211_rx_bss_info(sdata, mgmt, len, rx_status, &elems); in ieee80211_rx_mgmt_probe_beacon()
1626 struct ieee80211_mgmt *mgmt; in ieee80211_ibss_rx_queued_mgmt() local
1632 mgmt = (struct ieee80211_mgmt *) skb->data; in ieee80211_ibss_rx_queued_mgmt()
1633 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_ibss_rx_queued_mgmt()
1646 ieee80211_rx_mgmt_probe_beacon(sdata, mgmt, skb->len, in ieee80211_ibss_rx_queued_mgmt()
1650 ieee80211_rx_mgmt_auth_ibss(sdata, mgmt, skb->len); in ieee80211_ibss_rx_queued_mgmt()
1653 ieee80211_rx_mgmt_deauth_ibss(sdata, mgmt, skb->len); in ieee80211_ibss_rx_queued_mgmt()
1656 switch (mgmt->u.action.category) { in ieee80211_ibss_rx_queued_mgmt()
1666 mgmt->u.action.u.chan_switch.variable, in ieee80211_ibss_rx_queued_mgmt()
1667 ies_len, true, &elems, mgmt->bssid, NULL); in ieee80211_ibss_rx_queued_mgmt()
1672 ieee80211_rx_mgmt_spectrum_mgmt(sdata, mgmt, skb->len, in ieee80211_ibss_rx_queued_mgmt()