Lines Matching full:mgmt
1770 struct ieee80211_mgmt *mgmt; in ieee80211_send_assoc() local
1793 sizeof(*mgmt) + /* bit too much but doesn't matter */ in ieee80211_send_assoc()
1887 mgmt = skb_put_zero(skb, 24); in ieee80211_send_assoc()
1888 memcpy(mgmt->da, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_assoc()
1889 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_assoc()
1890 memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_assoc()
1897 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc()
1899 capab_pos = &mgmt->u.reassoc_req.capab_info; in ieee80211_send_assoc()
1900 mgmt->u.reassoc_req.listen_interval = listen_int; in ieee80211_send_assoc()
1901 memcpy(mgmt->u.reassoc_req.current_ap, in ieee80211_send_assoc()
1906 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc()
1908 capab_pos = &mgmt->u.assoc_req.capab_info; in ieee80211_send_assoc()
1909 mgmt->u.assoc_req.listen_interval = listen_int; in ieee80211_send_assoc()
2734 struct ieee80211_mgmt *mgmt, in ieee80211_handle_pwr_constr() argument
2744 __le16 capab = mgmt->u.probe_resp.capab_info; in ieee80211_handle_pwr_constr()
2746 if (ieee80211_is_s1g_beacon(mgmt->frame_control)) in ieee80211_handle_pwr_constr()
3588 /* clear AP addr only after building the needed mgmt frames */ in ieee80211_set_disassoc()
4217 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_auth_challenge() argument
4229 pos = mgmt->u.auth.variable; in ieee80211_auth_challenge()
4231 len - (pos - (u8 *)mgmt)); in ieee80211_auth_challenge()
4276 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_auth() argument
4296 if (!ether_addr_equal(ifmgd->auth_data->ap_addr, mgmt->bssid)) in ieee80211_rx_mgmt_auth()
4299 auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); in ieee80211_rx_mgmt_auth()
4300 auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); in ieee80211_rx_mgmt_auth()
4301 status_code = le16_to_cpu(mgmt->u.auth.status_code); in ieee80211_rx_mgmt_auth()
4310 mgmt->sa, auth_alg, ifmgd->auth_data->algorithm, in ieee80211_rx_mgmt_auth()
4317 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_auth()
4334 mgmt->sa, status_code); in ieee80211_rx_mgmt_auth()
4353 ieee80211_auth_challenge(sdata, mgmt, len); in ieee80211_rx_mgmt_auth()
4378 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_auth()
4441 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_deauth() argument
4444 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); in ieee80211_rx_mgmt_deauth()
4451 if (!ether_addr_equal(mgmt->bssid, mgmt->sa)) { in ieee80211_rx_mgmt_deauth()
4452 ieee80211_tdls_handle_disconnect(sdata, mgmt->sa, reason_code); in ieee80211_rx_mgmt_deauth()
4457 ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)) { in ieee80211_rx_mgmt_deauth()
4464 ieee80211_report_disconnect(sdata, (u8 *)mgmt, len, false, in ieee80211_rx_mgmt_deauth()
4470 ether_addr_equal(mgmt->bssid, ifmgd->assoc_data->ap_addr)) { in ieee80211_rx_mgmt_deauth()
4478 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_deauth()
4485 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_disassoc() argument
4496 !ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)) in ieee80211_rx_mgmt_disassoc()
4499 reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); in ieee80211_rx_mgmt_disassoc()
4501 if (!ether_addr_equal(mgmt->bssid, mgmt->sa)) { in ieee80211_rx_mgmt_disassoc()
4502 ieee80211_tdls_handle_disconnect(sdata, mgmt->sa, reason_code); in ieee80211_rx_mgmt_disassoc()
4512 ieee80211_report_disconnect(sdata, (u8 *)mgmt, len, false, reason_code, in ieee80211_rx_mgmt_disassoc()
4622 struct ieee80211_mgmt *mgmt, in ieee80211_assoc_config_link() argument
4655 capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info); in ieee80211_assoc_config_link()
5544 struct ieee80211_mgmt *mgmt, in ieee80211_assoc_success() argument
5648 mgmt, elem_start, elem_len, in ieee80211_assoc_success()
5720 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_assoc_resp() argument
5755 if (!ether_addr_equal(assoc_data->ap_addr, mgmt->bssid) || in ieee80211_rx_mgmt_assoc_resp()
5756 !ether_addr_equal(assoc_data->ap_addr, mgmt->sa)) in ieee80211_rx_mgmt_assoc_resp()
5767 reassoc = ieee80211_is_reassoc_resp(mgmt->frame_control); in ieee80211_rx_mgmt_assoc_resp()
5768 capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info); in ieee80211_rx_mgmt_assoc_resp()
5769 status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code); in ieee80211_rx_mgmt_assoc_resp()
5771 elem_start = mgmt->u.s1g_assoc_resp.variable; in ieee80211_rx_mgmt_assoc_resp()
5773 elem_start = mgmt->u.assoc_resp.variable; in ieee80211_rx_mgmt_assoc_resp()
5785 fils_decrypt_assoc_resp(sdata, (u8 *)mgmt, &len, assoc_data) < 0) in ieee80211_rx_mgmt_assoc_resp()
5788 elem_len = len - (elem_start - (u8 *)mgmt); in ieee80211_rx_mgmt_assoc_resp()
5800 aid = le16_to_cpu(mgmt->u.assoc_resp.aid); in ieee80211_rx_mgmt_assoc_resp()
5882 if (!ieee80211_assoc_success(sdata, mgmt, elems, in ieee80211_rx_mgmt_assoc_resp()
5927 resp.buf = (u8 *)mgmt; in ieee80211_rx_mgmt_assoc_resp()
5942 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_bss_info() argument
5957 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, channel); in ieee80211_rx_bss_info()
5969 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_rx_mgmt_probe_resp() local
5991 if (!ether_addr_equal(mgmt->da, sdata->vif.addr) && in ieee80211_rx_mgmt_probe_resp()
5993 !is_broadcast_ether_addr(mgmt->da))) in ieee80211_rx_mgmt_probe_resp()
5996 baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; in ieee80211_rx_mgmt_probe_resp()
6000 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_probe_resp()
6003 ether_addr_equal(mgmt->bssid, link->u.mgd.bssid)) in ieee80211_rx_mgmt_probe_resp()
6685 struct ieee80211_mgmt *mgmt = (void *) hdr; in ieee80211_rx_mgmt_beacon() local
6698 u8 *bssid, *variable = mgmt->u.beacon.variable; in ieee80211_rx_mgmt_beacon()
6710 if (ieee80211_is_s1g_beacon(mgmt->frame_control)) { in ieee80211_rx_mgmt_beacon()
6711 struct ieee80211_ext *ext = (void *) mgmt; in ieee80211_rx_mgmt_beacon()
6719 baselen = (u8 *) variable - (u8 *) mgmt; in ieee80211_rx_mgmt_beacon()
6749 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_beacon()
6758 le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_mgmt_beacon()
6811 ncrc = crc32_be(0, (void *)&mgmt->u.beacon.beacon_int, 4); in ieee80211_rx_mgmt_beacon()
6894 le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_mgmt_beacon()
6901 ieee80211_is_s1g_short_beacon(mgmt->frame_control)) in ieee80211_rx_mgmt_beacon()
6906 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_beacon()
6947 le16_to_cpu(mgmt->u.beacon.capab_info), in ieee80211_rx_mgmt_beacon()
6983 changed |= ieee80211_handle_pwr_constr(link, chan, mgmt, in ieee80211_rx_mgmt_beacon()
6991 le64_to_cpu(mgmt->u.beacon.timestamp)); in ieee80211_rx_mgmt_beacon()
7090 struct ieee80211_mgmt *mgmt; in ieee80211_send_neg_ttlm_req() local
7101 mgmt = skb_put_zero(skb, hdr_len); in ieee80211_send_neg_ttlm_req()
7102 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_neg_ttlm_req()
7104 memcpy(mgmt->da, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_neg_ttlm_req()
7105 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_neg_ttlm_req()
7106 memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_neg_ttlm_req()
7108 mgmt->u.action.category = WLAN_CATEGORY_PROTECTED_EHT; in ieee80211_send_neg_ttlm_req()
7109 mgmt->u.action.u.ttlm_req.action_code = in ieee80211_send_neg_ttlm_req()
7111 mgmt->u.action.u.ttlm_req.dialog_token = dialog_token; in ieee80211_send_neg_ttlm_req()
7159 struct ieee80211_mgmt *mgmt; in ieee80211_send_neg_ttlm_res() local
7170 mgmt = skb_put_zero(skb, hdr_len); in ieee80211_send_neg_ttlm_res()
7171 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_neg_ttlm_res()
7173 memcpy(mgmt->da, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_neg_ttlm_res()
7174 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_neg_ttlm_res()
7175 memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_neg_ttlm_res()
7177 mgmt->u.action.category = WLAN_CATEGORY_PROTECTED_EHT; in ieee80211_send_neg_ttlm_res()
7178 mgmt->u.action.u.ttlm_res.action_code = in ieee80211_send_neg_ttlm_res()
7180 mgmt->u.action.u.ttlm_res.dialog_token = dialog_token; in ieee80211_send_neg_ttlm_res()
7186 mgmt->u.action.u.ttlm_res.status_code = in ieee80211_send_neg_ttlm_res()
7190 mgmt->u.action.u.ttlm_res.status_code = WLAN_STATUS_SUCCESS; in ieee80211_send_neg_ttlm_res()
7193 mgmt->u.action.u.ttlm_res.status_code = in ieee80211_send_neg_ttlm_res()
7285 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_process_neg_ttlm_req() argument
7298 dialog_token = mgmt->u.action.u.ttlm_req.dialog_token; in ieee80211_process_neg_ttlm_req()
7301 elems = ieee802_11_parse_elems(mgmt->u.action.u.ttlm_req.variable, in ieee80211_process_neg_ttlm_req()
7346 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_process_neg_ttlm_res() argument
7349 mgmt->u.action.u.ttlm_req.dialog_token != in ieee80211_process_neg_ttlm_res()
7364 if (mgmt->u.action.u.ttlm_res.status_code != WLAN_STATUS_SUCCESS) in ieee80211_process_neg_ttlm_res()
7393 struct ieee80211_mgmt *mgmt; in ieee80211_send_teardown_neg_ttlm() local
7404 mgmt = skb_put_zero(skb, frame_len); in ieee80211_send_teardown_neg_ttlm()
7405 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_teardown_neg_ttlm()
7407 memcpy(mgmt->da, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_teardown_neg_ttlm()
7408 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_teardown_neg_ttlm()
7409 memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_teardown_neg_ttlm()
7411 mgmt->u.action.category = WLAN_CATEGORY_PROTECTED_EHT; in ieee80211_send_teardown_neg_ttlm()
7412 mgmt->u.action.u.ttlm_tear_down.action_code = in ieee80211_send_teardown_neg_ttlm()
7449 struct ieee80211_mgmt *mgmt; in ieee80211_sta_rx_queued_mgmt() local
7456 mgmt = (struct ieee80211_mgmt *) skb->data; in ieee80211_sta_rx_queued_mgmt()
7457 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_sta_rx_queued_mgmt()
7468 ieee80211_rx_mgmt_beacon(link, (void *)mgmt, in ieee80211_sta_rx_queued_mgmt()
7475 ieee80211_rx_mgmt_auth(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
7478 ieee80211_rx_mgmt_deauth(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
7481 ieee80211_rx_mgmt_disassoc(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
7485 ieee80211_rx_mgmt_assoc_resp(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
7489 !ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)) in ieee80211_sta_rx_queued_mgmt()
7492 switch (mgmt->u.action.category) { in ieee80211_sta_rx_queued_mgmt()
7503 mgmt->u.action.u.chan_switch.variable, in ieee80211_sta_rx_queued_mgmt()
7532 mgmt->u.action.u.ext_chan_switch.variable, in ieee80211_sta_rx_queued_mgmt()
7538 if (mgmt->u.action.category == in ieee80211_sta_rx_queued_mgmt()
7546 &mgmt->u.action.u.ext_chan_switch.data; in ieee80211_sta_rx_queued_mgmt()