Lines Matching refs:mgmt
1384 struct ieee80211_mgmt *mgmt; in ieee80211_send_assoc() local
1407 sizeof(*mgmt) + /* bit too much but doesn't matter */ in ieee80211_send_assoc()
1501 mgmt = skb_put_zero(skb, 24); in ieee80211_send_assoc()
1502 memcpy(mgmt->da, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_assoc()
1503 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_assoc()
1504 memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_assoc()
1511 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc()
1513 capab_pos = &mgmt->u.reassoc_req.capab_info; in ieee80211_send_assoc()
1514 mgmt->u.reassoc_req.listen_interval = listen_int; in ieee80211_send_assoc()
1515 memcpy(mgmt->u.reassoc_req.current_ap, in ieee80211_send_assoc()
1520 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc()
1522 capab_pos = &mgmt->u.assoc_req.capab_info; in ieee80211_send_assoc()
1523 mgmt->u.assoc_req.listen_interval = listen_int; in ieee80211_send_assoc()
2109 struct ieee80211_mgmt *mgmt, in ieee80211_handle_pwr_constr() argument
2119 __le16 capab = mgmt->u.probe_resp.capab_info; in ieee80211_handle_pwr_constr()
2121 if (ieee80211_is_s1g_beacon(mgmt->frame_control)) in ieee80211_handle_pwr_constr()
3591 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_auth_challenge() argument
3602 pos = mgmt->u.auth.variable; in ieee80211_auth_challenge()
3604 len - (pos - (u8 *)mgmt)); in ieee80211_auth_challenge()
3653 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_auth() argument
3673 if (!ether_addr_equal(ifmgd->auth_data->ap_addr, mgmt->bssid)) in ieee80211_rx_mgmt_auth()
3676 auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); in ieee80211_rx_mgmt_auth()
3677 auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); in ieee80211_rx_mgmt_auth()
3678 status_code = le16_to_cpu(mgmt->u.auth.status_code); in ieee80211_rx_mgmt_auth()
3687 mgmt->sa, auth_alg, ifmgd->auth_data->algorithm, in ieee80211_rx_mgmt_auth()
3694 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_auth()
3711 mgmt->sa, status_code); in ieee80211_rx_mgmt_auth()
3730 ieee80211_auth_challenge(sdata, mgmt, len); in ieee80211_rx_mgmt_auth()
3755 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_auth()
3818 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_deauth() argument
3821 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); in ieee80211_rx_mgmt_deauth()
3828 if (!ether_addr_equal(mgmt->bssid, mgmt->sa)) { in ieee80211_rx_mgmt_deauth()
3829 ieee80211_tdls_handle_disconnect(sdata, mgmt->sa, reason_code); in ieee80211_rx_mgmt_deauth()
3834 ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)) { in ieee80211_rx_mgmt_deauth()
3841 ieee80211_report_disconnect(sdata, (u8 *)mgmt, len, false, in ieee80211_rx_mgmt_deauth()
3847 ether_addr_equal(mgmt->bssid, ifmgd->assoc_data->ap_addr)) { in ieee80211_rx_mgmt_deauth()
3855 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_deauth()
3862 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_disassoc() argument
3873 !ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)) in ieee80211_rx_mgmt_disassoc()
3876 reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); in ieee80211_rx_mgmt_disassoc()
3878 if (!ether_addr_equal(mgmt->bssid, mgmt->sa)) { in ieee80211_rx_mgmt_disassoc()
3879 ieee80211_tdls_handle_disconnect(sdata, mgmt->sa, reason_code); in ieee80211_rx_mgmt_disassoc()
3889 ieee80211_report_disconnect(sdata, (u8 *)mgmt, len, false, reason_code, in ieee80211_rx_mgmt_disassoc()
4000 struct ieee80211_mgmt *mgmt, in ieee80211_assoc_config_link() argument
4031 capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info); in ieee80211_assoc_config_link()
5106 struct ieee80211_mgmt *mgmt, in ieee80211_assoc_success() argument
5206 mgmt, elem_start, elem_len, in ieee80211_assoc_success()
5281 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_assoc_resp() argument
5313 if (!ether_addr_equal(assoc_data->ap_addr, mgmt->bssid) || in ieee80211_rx_mgmt_assoc_resp()
5314 !ether_addr_equal(assoc_data->ap_addr, mgmt->sa)) in ieee80211_rx_mgmt_assoc_resp()
5325 reassoc = ieee80211_is_reassoc_resp(mgmt->frame_control); in ieee80211_rx_mgmt_assoc_resp()
5326 capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info); in ieee80211_rx_mgmt_assoc_resp()
5327 status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code); in ieee80211_rx_mgmt_assoc_resp()
5329 elem_start = mgmt->u.s1g_assoc_resp.variable; in ieee80211_rx_mgmt_assoc_resp()
5331 elem_start = mgmt->u.assoc_resp.variable; in ieee80211_rx_mgmt_assoc_resp()
5343 fils_decrypt_assoc_resp(sdata, (u8 *)mgmt, &len, assoc_data) < 0) in ieee80211_rx_mgmt_assoc_resp()
5346 elem_len = len - (elem_start - (u8 *)mgmt); in ieee80211_rx_mgmt_assoc_resp()
5358 aid = le16_to_cpu(mgmt->u.assoc_resp.aid); in ieee80211_rx_mgmt_assoc_resp()
5441 if (!ieee80211_assoc_success(sdata, mgmt, elems, in ieee80211_rx_mgmt_assoc_resp()
5486 resp.buf = (u8 *)mgmt; in ieee80211_rx_mgmt_assoc_resp()
5501 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_bss_info() argument
5516 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, channel); in ieee80211_rx_bss_info()
5528 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_rx_mgmt_probe_resp() local
5550 if (!ether_addr_equal(mgmt->da, sdata->vif.addr) && in ieee80211_rx_mgmt_probe_resp()
5552 !is_broadcast_ether_addr(mgmt->da))) in ieee80211_rx_mgmt_probe_resp()
5555 baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; in ieee80211_rx_mgmt_probe_resp()
5559 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_probe_resp()
5562 ether_addr_equal(mgmt->bssid, link->u.mgd.bssid)) in ieee80211_rx_mgmt_probe_resp()
5914 struct ieee80211_mgmt *mgmt = (void *) hdr; in ieee80211_rx_mgmt_beacon() local
5927 u8 *bssid, *variable = mgmt->u.beacon.variable; in ieee80211_rx_mgmt_beacon()
5938 if (ieee80211_is_s1g_beacon(mgmt->frame_control)) { in ieee80211_rx_mgmt_beacon()
5939 struct ieee80211_ext *ext = (void *) mgmt; in ieee80211_rx_mgmt_beacon()
5947 baselen = (u8 *) variable - (u8 *) mgmt; in ieee80211_rx_mgmt_beacon()
5977 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_beacon()
5986 le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_mgmt_beacon()
6039 ncrc = crc32_be(0, (void *)&mgmt->u.beacon.beacon_int, 4); in ieee80211_rx_mgmt_beacon()
6116 le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_mgmt_beacon()
6123 ieee80211_is_s1g_short_beacon(mgmt->frame_control)) in ieee80211_rx_mgmt_beacon()
6128 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_beacon()
6167 le16_to_cpu(mgmt->u.beacon.capab_info), in ieee80211_rx_mgmt_beacon()
6215 changed |= ieee80211_handle_pwr_constr(link, chan, mgmt, in ieee80211_rx_mgmt_beacon()
6269 struct ieee80211_mgmt *mgmt; in ieee80211_sta_rx_queued_mgmt() local
6274 mgmt = (struct ieee80211_mgmt *) skb->data; in ieee80211_sta_rx_queued_mgmt()
6275 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_sta_rx_queued_mgmt()
6288 ieee80211_rx_mgmt_beacon(link, (void *)mgmt, in ieee80211_sta_rx_queued_mgmt()
6295 ieee80211_rx_mgmt_auth(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
6298 ieee80211_rx_mgmt_deauth(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
6301 ieee80211_rx_mgmt_disassoc(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
6305 ieee80211_rx_mgmt_assoc_resp(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
6309 !ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)) in ieee80211_sta_rx_queued_mgmt()
6312 if (mgmt->u.action.category == WLAN_CATEGORY_SPECTRUM_MGMT) { in ieee80211_sta_rx_queued_mgmt()
6324 mgmt->u.action.u.chan_switch.variable, in ieee80211_sta_rx_queued_mgmt()
6333 } else if (mgmt->u.action.category == WLAN_CATEGORY_PUBLIC) { in ieee80211_sta_rx_queued_mgmt()
6348 mgmt->u.action.u.ext_chan_switch.variable, in ieee80211_sta_rx_queued_mgmt()
6354 &mgmt->u.action.u.ext_chan_switch.data; in ieee80211_sta_rx_queued_mgmt()