Home
last modified time | relevance | path

Searched refs:mgmt (Results 1 – 25 of 27) sorted by relevance

12

/net/wireless/
Dmlme.c28 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_rx_assoc_resp() local
29 u8 *ie = mgmt->u.assoc_resp.variable; in cfg80211_rx_assoc_resp()
31 u16 status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code); in cfg80211_rx_assoc_resp()
49 __cfg80211_connect_result(dev, mgmt->bssid, NULL, 0, ie, len - ieoffs, in cfg80211_rx_assoc_resp()
68 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_deauth() local
69 const u8 *bssid = mgmt->bssid; in cfg80211_process_deauth()
70 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); in cfg80211_process_deauth()
71 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth()
87 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_disassoc() local
88 const u8 *bssid = mgmt->bssid; in cfg80211_process_disassoc()
[all …]
Dscan.c1102 struct ieee80211_mgmt *mgmt, size_t len, in cfg80211_inform_bss_frame_data() argument
1117 trace_cfg80211_inform_bss_frame(wiphy, data, mgmt, len); in cfg80211_inform_bss_frame_data()
1119 if (WARN_ON(!mgmt)) in cfg80211_inform_bss_frame_data()
1132 channel = cfg80211_get_bss_channel(wiphy, mgmt->u.beacon.variable, in cfg80211_inform_bss_frame_data()
1141 ies->tsf = le64_to_cpu(mgmt->u.probe_resp.timestamp); in cfg80211_inform_bss_frame_data()
1142 ies->from_beacon = ieee80211_is_beacon(mgmt->frame_control); in cfg80211_inform_bss_frame_data()
1143 memcpy(ies->data, mgmt->u.probe_resp.variable, ielen); in cfg80211_inform_bss_frame_data()
1145 if (ieee80211_is_probe_resp(mgmt->frame_control)) in cfg80211_inform_bss_frame_data()
1151 memcpy(tmp.pub.bssid, mgmt->bssid, ETH_ALEN); in cfg80211_inform_bss_frame_data()
1155 tmp.pub.beacon_interval = le16_to_cpu(mgmt->u.probe_resp.beacon_int); in cfg80211_inform_bss_frame_data()
[all …]
Dsme.c319 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_sme_rx_auth() local
320 u16 status_code = le16_to_cpu(mgmt->u.auth.status_code); in cfg80211_sme_rx_auth()
353 __cfg80211_connect_result(wdev->netdev, mgmt->bssid, in cfg80211_sme_rx_auth()
/net/mac80211/
Dibss.c50 struct ieee80211_mgmt *mgmt; in ieee80211_ibss_build_presp() local
78 mgmt = (void *) presp->head; in ieee80211_ibss_build_presp()
79 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_ibss_build_presp()
81 eth_broadcast_addr(mgmt->da); in ieee80211_ibss_build_presp()
82 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_ibss_build_presp()
83 memcpy(mgmt->bssid, ifibss->bssid, ETH_ALEN); in ieee80211_ibss_build_presp()
84 mgmt->u.beacon.beacon_int = cpu_to_le16(beacon_int); in ieee80211_ibss_build_presp()
85 mgmt->u.beacon.timestamp = cpu_to_le64(tsf); in ieee80211_ibss_build_presp()
86 mgmt->u.beacon.capab_info = cpu_to_le16(capability); in ieee80211_ibss_build_presp()
88 pos = (u8 *)mgmt + offsetof(struct ieee80211_mgmt, u.beacon.variable); in ieee80211_ibss_build_presp()
[all …]
Dagg-rx.c207 struct ieee80211_mgmt *mgmt; in ieee80211_send_addba_resp() local
211 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_addba_resp()
216 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); in ieee80211_send_addba_resp()
217 memset(mgmt, 0, 24); in ieee80211_send_addba_resp()
218 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_addba_resp()
219 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_resp()
223 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_resp()
225 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
227 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
229 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_addba_resp()
[all …]
Dmesh.c20 bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt) in mesh_action_is_path_sel() argument
22 return (mgmt->u.action.u.mesh_action.action_code == in mesh_action_is_path_sel()
672 struct ieee80211_mgmt *mgmt; in ieee80211_mesh_build_beacon() local
679 sizeof(mgmt->u.beacon); in ieee80211_mesh_build_beacon()
719 mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); in ieee80211_mesh_build_beacon()
720 memset(mgmt, 0, hdr_len); in ieee80211_mesh_build_beacon()
721 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_mesh_build_beacon()
723 eth_broadcast_addr(mgmt->da); in ieee80211_mesh_build_beacon()
724 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon()
725 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon()
[all …]
Dmesh_hwmp.c111 struct ieee80211_mgmt *mgmt; in mesh_path_sel_frame_tx() local
114 sizeof(mgmt->u.action.u.mesh_action); in mesh_path_sel_frame_tx()
122 mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); in mesh_path_sel_frame_tx()
123 memset(mgmt, 0, hdr_len); in mesh_path_sel_frame_tx()
124 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mesh_path_sel_frame_tx()
127 memcpy(mgmt->da, da, ETH_ALEN); in mesh_path_sel_frame_tx()
128 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx()
130 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx()
131 mgmt->u.action.category = WLAN_CATEGORY_MESH_ACTION; in mesh_path_sel_frame_tx()
132 mgmt->u.action.u.mesh_action.action_code = in mesh_path_sel_frame_tx()
[all …]
Dht.c369 struct ieee80211_mgmt *mgmt; in ieee80211_send_delba() local
372 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_delba()
377 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); in ieee80211_send_delba()
378 memset(mgmt, 0, 24); in ieee80211_send_delba()
379 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_delba()
380 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba()
384 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba()
386 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_delba()
388 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_delba()
390 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_delba()
[all …]
Dmesh_plink.c16 #define PLINK_CNF_AID(mgmt) ((mgmt)->u.action.u.self_prot.variable + 2) argument
217 struct ieee80211_mgmt *mgmt; in mesh_plink_frame_tx() local
222 sizeof(mgmt->u.action.u.self_prot); in mesh_plink_frame_tx()
243 mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); in mesh_plink_frame_tx()
244 memset(mgmt, 0, hdr_len); in mesh_plink_frame_tx()
245 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mesh_plink_frame_tx()
247 memcpy(mgmt->da, da, ETH_ALEN); in mesh_plink_frame_tx()
248 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_plink_frame_tx()
249 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_plink_frame_tx()
250 mgmt->u.action.category = WLAN_CATEGORY_SELF_PROTECTED; in mesh_plink_frame_tx()
[all …]
Dmlme.c595 struct ieee80211_mgmt *mgmt; in ieee80211_send_assoc() local
647 sizeof(*mgmt) + /* bit too much but doesn't matter */ in ieee80211_send_assoc()
679 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); in ieee80211_send_assoc()
680 memset(mgmt, 0, 24); in ieee80211_send_assoc()
681 memcpy(mgmt->da, assoc_data->bss->bssid, ETH_ALEN); in ieee80211_send_assoc()
682 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_assoc()
683 memcpy(mgmt->bssid, assoc_data->bss->bssid, ETH_ALEN); in ieee80211_send_assoc()
687 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc()
689 mgmt->u.reassoc_req.capab_info = cpu_to_le16(capab); in ieee80211_send_assoc()
690 mgmt->u.reassoc_req.listen_interval = in ieee80211_send_assoc()
[all …]
Dagg-tx.c70 struct ieee80211_mgmt *mgmt; in ieee80211_send_addba_request() local
73 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_addba_request()
79 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); in ieee80211_send_addba_request()
80 memset(mgmt, 0, 24); in ieee80211_send_addba_request()
81 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_addba_request()
82 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
86 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
88 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_request()
90 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_request()
92 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_addba_request()
[all …]
Dspectmgmt.c218 struct ieee80211_mgmt *mgmt, in ieee80211_process_measurement_req() argument
229 &mgmt->u.action.u.measurement.msr_elem, in ieee80211_process_measurement_req()
230 mgmt->sa, mgmt->bssid, in ieee80211_process_measurement_req()
231 mgmt->u.action.u.measurement.dialog_token); in ieee80211_process_measurement_req()
Drx.c850 struct ieee80211_mgmt *mgmt; in ieee80211_rx_mesh_check() local
862 mgmt = (struct ieee80211_mgmt *)hdr; in ieee80211_rx_mesh_check()
863 category = mgmt->u.action.category; in ieee80211_rx_mesh_check()
2711 struct ieee80211_mgmt *mgmt, in ieee80211_process_sa_query_req() argument
2718 if (!ether_addr_equal(mgmt->da, sdata->vif.addr)) { in ieee80211_process_sa_query_req()
2723 if (!ether_addr_equal(mgmt->sa, sdata->u.mgd.bssid) || in ieee80211_process_sa_query_req()
2724 !ether_addr_equal(mgmt->bssid, sdata->u.mgd.bssid)) { in ieee80211_process_sa_query_req()
2741 memcpy(resp->da, mgmt->sa, ETH_ALEN); in ieee80211_process_sa_query_req()
2750 mgmt->u.action.u.sa_query.trans_id, in ieee80211_process_sa_query_req()
2759 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) rx->skb->data; in ieee80211_rx_h_mgmt_check() local
[all …]
Dutil.c1229 struct ieee80211_mgmt *mgmt; in ieee80211_send_auth() local
1240 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24 + 6); in ieee80211_send_auth()
1241 memset(mgmt, 0, 24 + 6); in ieee80211_send_auth()
1242 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_auth()
1244 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_auth()
1245 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_auth()
1246 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_send_auth()
1247 mgmt->u.auth.auth_alg = cpu_to_le16(auth_alg); in ieee80211_send_auth()
1248 mgmt->u.auth.auth_transaction = cpu_to_le16(transaction); in ieee80211_send_auth()
1249 mgmt->u.auth.status_code = cpu_to_le16(status); in ieee80211_send_auth()
[all …]
Dscan.c62 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_bss_info_update() argument
66 bool beacon = ieee80211_is_beacon(mgmt->frame_control); in ieee80211_bss_info_update()
103 mgmt, len, GFP_ATOMIC); in ieee80211_bss_info_update()
190 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_scan_rx() local
198 (!ieee80211_is_probe_resp(mgmt->frame_control) && in ieee80211_scan_rx()
199 !ieee80211_is_beacon(mgmt->frame_control))) in ieee80211_scan_rx()
208 if (ieee80211_is_probe_resp(mgmt->frame_control)) { in ieee80211_scan_rx()
219 (ether_addr_equal(mgmt->da, sdata1->vif.addr) || in ieee80211_scan_rx()
222 (ether_addr_equal(mgmt->da, sdata2->vif.addr) || in ieee80211_scan_rx()
226 elements = mgmt->u.probe_resp.variable; in ieee80211_scan_rx()
[all …]
Dmesh_sync.c84 struct ieee80211_mgmt *mgmt, in mesh_sync_offset_rx_bcn_presp() argument
115 sta = sta_info_get(sdata, mgmt->sa); in mesh_sync_offset_rx_bcn_presp()
132 t_t = le64_to_cpu(mgmt->u.beacon.timestamp); in mesh_sync_offset_rx_bcn_presp()
Diface.c1265 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_iface_work() local
1295 } else if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_iface_work()
1296 mgmt->u.action.category == WLAN_CATEGORY_BACK) { in ieee80211_iface_work()
1300 sta = sta_info_get_bss(sdata, mgmt->sa); in ieee80211_iface_work()
1302 switch (mgmt->u.action.u.addba_req.action_code) { in ieee80211_iface_work()
1305 local, sta, mgmt, len); in ieee80211_iface_work()
1309 mgmt, len); in ieee80211_iface_work()
1313 mgmt, len); in ieee80211_iface_work()
1321 } else if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_iface_work()
1322 mgmt->u.action.category == WLAN_CATEGORY_VHT) { in ieee80211_iface_work()
[all …]
Dvht.c485 struct ieee80211_mgmt *mgmt) in ieee80211_process_mu_groups() argument
492 if (!memcmp(mgmt->u.action.u.vht_group_notif.position, in ieee80211_process_mu_groups()
494 !memcmp(mgmt->u.action.u.vht_group_notif.membership, in ieee80211_process_mu_groups()
499 mgmt->u.action.u.vht_group_notif.membership, in ieee80211_process_mu_groups()
502 mgmt->u.action.u.vht_group_notif.position, in ieee80211_process_mu_groups()
Doffchannel.c785 const struct ieee80211_mgmt *mgmt = (void *)params->buf; in ieee80211_mgmt_tx() local
819 if (!ieee80211_is_action(mgmt->frame_control) || in ieee80211_mgmt_tx()
820 mgmt->u.action.category == WLAN_CATEGORY_PUBLIC || in ieee80211_mgmt_tx()
821 mgmt->u.action.category == WLAN_CATEGORY_SELF_PROTECTED || in ieee80211_mgmt_tx()
822 mgmt->u.action.category == WLAN_CATEGORY_SPECTRUM_MGMT) in ieee80211_mgmt_tx()
825 sta = sta_info_get_bss(sdata, mgmt->da); in ieee80211_mgmt_tx()
837 mgmt->bssid, ETH_ALEN))) in ieee80211_mgmt_tx()
Dmesh.h265 struct ieee80211_mgmt *mgmt, size_t len);
283 struct ieee80211_mgmt *mgmt, size_t len,
304 bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt);
Dstatus.c187 struct ieee80211_mgmt *mgmt = (void *) skb->data; in ieee80211_frame_acked() local
194 if (ieee80211_is_data_qos(mgmt->frame_control)) { in ieee80211_frame_acked()
202 if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_frame_acked()
203 !ieee80211_has_protected(mgmt->frame_control) && in ieee80211_frame_acked()
204 mgmt->u.action.category == WLAN_CATEGORY_HT && in ieee80211_frame_acked()
205 mgmt->u.action.u.ht_smps.action == WLAN_HT_ACTION_SMPS && in ieee80211_frame_acked()
209 switch (mgmt->u.action.u.ht_smps.smps_control) { in ieee80211_frame_acked()
Dtdls.c839 struct ieee80211_mgmt *mgmt; in ieee80211_prep_tdls_direct() local
841 mgmt = (void *)skb_put(skb, 24); in ieee80211_prep_tdls_direct()
842 memset(mgmt, 0, 24); in ieee80211_prep_tdls_direct()
843 memcpy(mgmt->da, peer, ETH_ALEN); in ieee80211_prep_tdls_direct()
844 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_prep_tdls_direct()
845 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_prep_tdls_direct()
847 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_prep_tdls_direct()
852 skb_put(skb, 1 + sizeof(mgmt->u.action.u.tdls_discover_resp)); in ieee80211_prep_tdls_direct()
853 mgmt->u.action.category = WLAN_CATEGORY_PUBLIC; in ieee80211_prep_tdls_direct()
854 mgmt->u.action.u.tdls_discover_resp.action_code = in ieee80211_prep_tdls_direct()
[all …]
Dieee80211_i.h615 struct ieee80211_mgmt *mgmt,
1632 struct ieee80211_mgmt *mgmt,
1754 struct ieee80211_mgmt *mgmt, size_t len);
1757 struct ieee80211_mgmt *mgmt,
1761 struct ieee80211_mgmt *mgmt,
1790 struct ieee80211_mgmt *mgmt);
1804 struct ieee80211_mgmt *mgmt,
Dwpa.c312 int a4_included, mgmt; in ccmp_special_blocks() local
322 mgmt = ieee80211_is_mgmt(hdr->frame_control); in ccmp_special_blocks()
326 if (!mgmt) in ccmp_special_blocks()
351 b_0[1] = qos_tid | (mgmt << 4); in ccmp_special_blocks()
/net/bluetooth/
DMakefile14 bluetooth-y := af_bluetooth.o hci_core.o hci_conn.o hci_event.o mgmt.o \

12