Lines Matching refs:mgmt

1308 	struct ieee80211_mgmt *mgmt;  in ieee80211_send_assoc()  local
1331 sizeof(*mgmt) + /* bit too much but doesn't matter */ in ieee80211_send_assoc()
1425 mgmt = skb_put_zero(skb, 24); in ieee80211_send_assoc()
1426 memcpy(mgmt->da, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_assoc()
1427 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_assoc()
1428 memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_assoc()
1435 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc()
1437 capab_pos = &mgmt->u.reassoc_req.capab_info; in ieee80211_send_assoc()
1438 mgmt->u.reassoc_req.listen_interval = listen_int; in ieee80211_send_assoc()
1439 memcpy(mgmt->u.reassoc_req.current_ap, in ieee80211_send_assoc()
1444 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc()
1446 capab_pos = &mgmt->u.assoc_req.capab_info; in ieee80211_send_assoc()
1447 mgmt->u.assoc_req.listen_interval = listen_int; in ieee80211_send_assoc()
2040 struct ieee80211_mgmt *mgmt, in ieee80211_handle_pwr_constr() argument
2050 __le16 capab = mgmt->u.probe_resp.capab_info; in ieee80211_handle_pwr_constr()
2052 if (ieee80211_is_s1g_beacon(mgmt->frame_control)) in ieee80211_handle_pwr_constr()
3518 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_auth_challenge() argument
3529 pos = mgmt->u.auth.variable; in ieee80211_auth_challenge()
3531 len - (pos - (u8 *)mgmt)); in ieee80211_auth_challenge()
3580 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_auth() argument
3600 if (!ether_addr_equal(ifmgd->auth_data->ap_addr, mgmt->bssid)) in ieee80211_rx_mgmt_auth()
3603 auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); in ieee80211_rx_mgmt_auth()
3604 auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); in ieee80211_rx_mgmt_auth()
3605 status_code = le16_to_cpu(mgmt->u.auth.status_code); in ieee80211_rx_mgmt_auth()
3614 mgmt->sa, auth_alg, ifmgd->auth_data->algorithm, in ieee80211_rx_mgmt_auth()
3621 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_auth()
3638 mgmt->sa, status_code); in ieee80211_rx_mgmt_auth()
3657 ieee80211_auth_challenge(sdata, mgmt, len); in ieee80211_rx_mgmt_auth()
3682 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_auth()
3745 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_deauth() argument
3748 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); in ieee80211_rx_mgmt_deauth()
3755 if (!ether_addr_equal(mgmt->bssid, mgmt->sa)) { in ieee80211_rx_mgmt_deauth()
3756 ieee80211_tdls_handle_disconnect(sdata, mgmt->sa, reason_code); in ieee80211_rx_mgmt_deauth()
3761 ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)) { in ieee80211_rx_mgmt_deauth()
3768 ieee80211_report_disconnect(sdata, (u8 *)mgmt, len, false, in ieee80211_rx_mgmt_deauth()
3774 ether_addr_equal(mgmt->bssid, ifmgd->assoc_data->ap_addr)) { in ieee80211_rx_mgmt_deauth()
3782 cfg80211_rx_mlme_mgmt(sdata->dev, (u8 *)mgmt, len); in ieee80211_rx_mgmt_deauth()
3789 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_rx_mgmt_disassoc() argument
3800 !ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)) in ieee80211_rx_mgmt_disassoc()
3803 reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); in ieee80211_rx_mgmt_disassoc()
3805 if (!ether_addr_equal(mgmt->bssid, mgmt->sa)) { in ieee80211_rx_mgmt_disassoc()
3806 ieee80211_tdls_handle_disconnect(sdata, mgmt->sa, reason_code); in ieee80211_rx_mgmt_disassoc()
3816 ieee80211_report_disconnect(sdata, (u8 *)mgmt, len, false, reason_code, in ieee80211_rx_mgmt_disassoc()
3917 struct ieee80211_mgmt *mgmt, in ieee80211_assoc_config_link() argument
3946 capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info); in ieee80211_assoc_config_link()
4857 struct ieee80211_mgmt *mgmt, in ieee80211_assoc_success() argument
4946 mgmt, elem_start, elem_len, in ieee80211_assoc_success()
5012 struct ieee80211_mgmt *mgmt, in ieee80211_rx_mgmt_assoc_resp() argument
5044 if (!ether_addr_equal(assoc_data->ap_addr, mgmt->bssid) || in ieee80211_rx_mgmt_assoc_resp()
5045 !ether_addr_equal(assoc_data->ap_addr, mgmt->sa)) in ieee80211_rx_mgmt_assoc_resp()
5056 reassoc = ieee80211_is_reassoc_resp(mgmt->frame_control); in ieee80211_rx_mgmt_assoc_resp()
5057 capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info); in ieee80211_rx_mgmt_assoc_resp()
5058 status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code); in ieee80211_rx_mgmt_assoc_resp()
5060 elem_start = mgmt->u.s1g_assoc_resp.variable; in ieee80211_rx_mgmt_assoc_resp()
5062 elem_start = mgmt->u.assoc_resp.variable; in ieee80211_rx_mgmt_assoc_resp()
5074 fils_decrypt_assoc_resp(sdata, (u8 *)mgmt, &len, assoc_data) < 0) in ieee80211_rx_mgmt_assoc_resp()
5077 elem_len = len - (elem_start - (u8 *)mgmt); in ieee80211_rx_mgmt_assoc_resp()
5089 aid = le16_to_cpu(mgmt->u.assoc_resp.aid); in ieee80211_rx_mgmt_assoc_resp()
5172 if (!ieee80211_assoc_success(sdata, mgmt, elems, in ieee80211_rx_mgmt_assoc_resp()
5213 resp.buf = (u8 *)mgmt; in ieee80211_rx_mgmt_assoc_resp()
5228 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_rx_bss_info() argument
5243 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, channel); in ieee80211_rx_bss_info()
5255 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_rx_mgmt_probe_resp() local
5277 if (!ether_addr_equal(mgmt->da, sdata->vif.addr) && in ieee80211_rx_mgmt_probe_resp()
5279 !is_broadcast_ether_addr(mgmt->da))) in ieee80211_rx_mgmt_probe_resp()
5282 baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; in ieee80211_rx_mgmt_probe_resp()
5286 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_probe_resp()
5289 ether_addr_equal(mgmt->bssid, link->u.mgd.bssid)) in ieee80211_rx_mgmt_probe_resp()
5434 struct ieee80211_mgmt *mgmt = (void *) hdr; in ieee80211_rx_mgmt_beacon() local
5446 u8 *bssid, *variable = mgmt->u.beacon.variable; in ieee80211_rx_mgmt_beacon()
5457 if (ieee80211_is_s1g_beacon(mgmt->frame_control)) { in ieee80211_rx_mgmt_beacon()
5458 struct ieee80211_ext *ext = (void *) mgmt; in ieee80211_rx_mgmt_beacon()
5466 baselen = (u8 *) variable - (u8 *) mgmt; in ieee80211_rx_mgmt_beacon()
5496 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_beacon()
5504 le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_mgmt_beacon()
5557 ncrc = crc32_be(0, (void *)&mgmt->u.beacon.beacon_int, 4); in ieee80211_rx_mgmt_beacon()
5634 le64_to_cpu(mgmt->u.beacon.timestamp); in ieee80211_rx_mgmt_beacon()
5641 ieee80211_is_s1g_short_beacon(mgmt->frame_control)) in ieee80211_rx_mgmt_beacon()
5646 ieee80211_rx_bss_info(link, mgmt, len, rx_status); in ieee80211_rx_mgmt_beacon()
5685 le16_to_cpu(mgmt->u.beacon.capab_info), in ieee80211_rx_mgmt_beacon()
5728 changed |= ieee80211_handle_pwr_constr(link, chan, mgmt, in ieee80211_rx_mgmt_beacon()
5765 struct ieee80211_mgmt *mgmt; in ieee80211_sta_rx_queued_mgmt() local
5770 mgmt = (struct ieee80211_mgmt *) skb->data; in ieee80211_sta_rx_queued_mgmt()
5771 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_sta_rx_queued_mgmt()
5784 ieee80211_rx_mgmt_beacon(link, (void *)mgmt, in ieee80211_sta_rx_queued_mgmt()
5791 ieee80211_rx_mgmt_auth(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
5794 ieee80211_rx_mgmt_deauth(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
5797 ieee80211_rx_mgmt_disassoc(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
5801 ieee80211_rx_mgmt_assoc_resp(sdata, mgmt, skb->len); in ieee80211_sta_rx_queued_mgmt()
5804 if (mgmt->u.action.category == WLAN_CATEGORY_SPECTRUM_MGMT) { in ieee80211_sta_rx_queued_mgmt()
5816 mgmt->u.action.u.chan_switch.variable, in ieee80211_sta_rx_queued_mgmt()
5825 } else if (mgmt->u.action.category == WLAN_CATEGORY_PUBLIC) { in ieee80211_sta_rx_queued_mgmt()
5840 mgmt->u.action.u.ext_chan_switch.variable, in ieee80211_sta_rx_queued_mgmt()
5846 &mgmt->u.action.u.ext_chan_switch.data; in ieee80211_sta_rx_queued_mgmt()