Lines Matching full:mgmt

48 	struct ieee80211_mgmt *mgmt;  in ieee80211_ibss_build_presp()  local
75 mgmt = (void *) presp->head; in ieee80211_ibss_build_presp()
76 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_ibss_build_presp()
78 eth_broadcast_addr(mgmt->da); in ieee80211_ibss_build_presp()
79 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_ibss_build_presp()
80 memcpy(mgmt->bssid, ifibss->bssid, ETH_ALEN); in ieee80211_ibss_build_presp()
81 mgmt->u.beacon.beacon_int = cpu_to_le16(beacon_int); in ieee80211_ibss_build_presp()
82 mgmt->u.beacon.timestamp = cpu_to_le64(tsf); in ieee80211_ibss_build_presp()
83 mgmt->u.beacon.capab_info = cpu_to_le16(capability); in ieee80211_ibss_build_presp()
85 pos = (u8 *)mgmt + offsetof(struct ieee80211_mgmt, u.beacon.variable); in ieee80211_ibss_build_presp()
223 struct ieee80211_mgmt *mgmt; in __ieee80211_sta_join_ibss() local
316 mgmt = (void *)presp->head; in __ieee80211_sta_join_ibss()
376 bss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta, mgmt, in __ieee80211_sta_join_ibss()
894 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_mgmt_spectrum_mgmt() argument
904 if (mgmt->u.action.u.measurement.action_code != in ieee80211_rx_mgmt_spectrum_mgmt()
909 sizeof(mgmt->u.action.u.chan_switch); in ieee80211_rx_mgmt_spectrum_mgmt()
918 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_deauth_ibss() argument
921 u16 reason = le16_to_cpu(mgmt->u.deauth.reason_code); in ieee80211_rx_mgmt_deauth_ibss()
926 ibss_dbg(sdata, "RX DeAuth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_deauth_ibss()
927 ibss_dbg(sdata, "\tBSSID=%pM (reason: %d)\n", mgmt->bssid, reason); in ieee80211_rx_mgmt_deauth_ibss()
928 sta_info_destroy_addr(sdata, mgmt->sa); in ieee80211_rx_mgmt_deauth_ibss()
932 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_auth_ibss() argument
942 auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); in ieee80211_rx_mgmt_auth_ibss()
943 auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); in ieee80211_rx_mgmt_auth_ibss()
945 ibss_dbg(sdata, "RX Auth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_auth_ibss()
947 mgmt->bssid, auth_transaction); in ieee80211_rx_mgmt_auth_ibss()
959 mgmt->sa, sdata->u.ibss.bssid, NULL, 0, 0, 0); in ieee80211_rx_mgmt_auth_ibss()
963 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_update_sta_info() argument
978 if (!ether_addr_equal(mgmt->bssid, sdata->u.ibss.bssid)) in ieee80211_update_sta_info()
986 sta = sta_info_get(sdata, mgmt->sa); in ieee80211_update_sta_info()
1007 sta = ieee80211_ibss_add_sta(sdata, mgmt->bssid, in ieee80211_update_sta_info()
1008 mgmt->sa, supp_rates); in ieee80211_update_sta_info()
1082 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_bss_info() argument
1098 ieee80211_update_sta_info(sdata, mgmt, len, rx_status, elems, channel); in ieee80211_rx_bss_info()
1100 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, channel); in ieee80211_rx_bss_info()
1107 beacon_timestamp = le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_bss_info()
1153 mgmt->sa, mgmt->bssid, in ieee80211_rx_bss_info()
1163 mgmt->bssid); in ieee80211_rx_bss_info()
1166 ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, in ieee80211_rx_bss_info()
1493 struct ieee80211_mgmt *mgmt = (void *)req->data; in ieee80211_rx_mgmt_probe_req() local
1511 ibss_dbg(sdata, "RX ProbeReq SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); in ieee80211_rx_mgmt_probe_req()
1513 mgmt->bssid, tx_last_beacon); in ieee80211_rx_mgmt_probe_req()
1515 if (!tx_last_beacon && is_multicast_ether_addr(mgmt->da)) in ieee80211_rx_mgmt_probe_req()
1518 if (!ether_addr_equal(mgmt->bssid, ifibss->bssid) && in ieee80211_rx_mgmt_probe_req()
1519 !is_broadcast_ether_addr(mgmt->bssid)) in ieee80211_rx_mgmt_probe_req()
1522 end = ((u8 *) mgmt) + len; in ieee80211_rx_mgmt_probe_req()
1523 pos = mgmt->u.probe_req.variable; in ieee80211_rx_mgmt_probe_req()
1527 mgmt->sa); in ieee80211_rx_mgmt_probe_req()
1545 memcpy(((struct ieee80211_mgmt *) skb->data)->da, mgmt->sa, ETH_ALEN); in ieee80211_rx_mgmt_probe_req()
1546 ibss_dbg(sdata, "Sending ProbeResp to %pM\n", mgmt->sa); in ieee80211_rx_mgmt_probe_req()
1558 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_mgmt_probe_beacon() argument
1564 BUILD_BUG_ON(offsetof(typeof(mgmt->u.probe_resp), variable) != in ieee80211_rx_mgmt_probe_beacon()
1565 offsetof(typeof(mgmt->u.beacon), variable)); in ieee80211_rx_mgmt_probe_beacon()
1571 baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; in ieee80211_rx_mgmt_probe_beacon()
1575 elems = ieee802_11_parse_elems(mgmt->u.probe_resp.variable, in ieee80211_rx_mgmt_probe_beacon()
1579 ieee80211_rx_bss_info(sdata, mgmt, len, rx_status, elems); in ieee80211_rx_mgmt_probe_beacon()
1588 struct ieee80211_mgmt *mgmt; in ieee80211_ibss_rx_queued_mgmt() local
1594 mgmt = (struct ieee80211_mgmt *) skb->data; in ieee80211_ibss_rx_queued_mgmt()
1595 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_ibss_rx_queued_mgmt()
1606 ieee80211_rx_mgmt_probe_beacon(sdata, mgmt, skb->len, in ieee80211_ibss_rx_queued_mgmt()
1610 ieee80211_rx_mgmt_auth_ibss(sdata, mgmt, skb->len); in ieee80211_ibss_rx_queued_mgmt()
1613 ieee80211_rx_mgmt_deauth_ibss(sdata, mgmt, skb->len); in ieee80211_ibss_rx_queued_mgmt()
1616 switch (mgmt->u.action.category) { in ieee80211_ibss_rx_queued_mgmt()
1626 mgmt->u.action.u.chan_switch.variable, in ieee80211_ibss_rx_queued_mgmt()
1630 ieee80211_rx_mgmt_spectrum_mgmt(sdata, mgmt, in ieee80211_ibss_rx_queued_mgmt()