Home
last modified time | relevance | path

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

12

/net/mac80211/
Ds1g.c21 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_is_twt_setup() local
23 if (likely(!ieee80211_is_action(mgmt->frame_control))) in ieee80211_s1g_is_twt_setup()
26 if (likely(mgmt->u.action.category != WLAN_CATEGORY_S1G)) in ieee80211_s1g_is_twt_setup()
29 return mgmt->u.action.u.s1g.action_code == WLAN_S1G_TWT_SETUP; in ieee80211_s1g_is_twt_setup()
38 struct ieee80211_mgmt *mgmt; in ieee80211_s1g_send_twt_setup() local
46 mgmt = skb_put_zero(skb, len); in ieee80211_s1g_send_twt_setup()
47 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_s1g_send_twt_setup()
49 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
50 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
51 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
[all …]
Dibss.c48 struct ieee80211_mgmt *mgmt; in ieee80211_ibss_build_presp() local
76 mgmt = (void *) presp->head; in ieee80211_ibss_build_presp()
77 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_ibss_build_presp()
79 eth_broadcast_addr(mgmt->da); in ieee80211_ibss_build_presp()
80 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_ibss_build_presp()
81 memcpy(mgmt->bssid, ifibss->bssid, ETH_ALEN); in ieee80211_ibss_build_presp()
82 mgmt->u.beacon.beacon_int = cpu_to_le16(beacon_int); in ieee80211_ibss_build_presp()
83 mgmt->u.beacon.timestamp = cpu_to_le64(tsf); in ieee80211_ibss_build_presp()
84 mgmt->u.beacon.capab_info = cpu_to_le16(capability); in ieee80211_ibss_build_presp()
86 pos = (u8 *)mgmt + offsetof(struct ieee80211_mgmt, u.beacon.variable); in ieee80211_ibss_build_presp()
[all …]
Dfils_aead.c220 struct ieee80211_mgmt *mgmt = (void *)skb->data; in fils_encrypt_assoc_req() local
227 if (ieee80211_is_reassoc_req(mgmt->frame_control)) { in fils_encrypt_assoc_req()
228 capab = (u8 *)&mgmt->u.reassoc_req.capab_info; in fils_encrypt_assoc_req()
229 ies = mgmt->u.reassoc_req.variable; in fils_encrypt_assoc_req()
231 capab = (u8 *)&mgmt->u.assoc_req.capab_info; in fils_encrypt_assoc_req()
232 ies = mgmt->u.assoc_req.variable; in fils_encrypt_assoc_req()
245 addr[0] = mgmt->sa; in fils_encrypt_assoc_req()
248 addr[1] = mgmt->da; in fils_encrypt_assoc_req()
272 struct ieee80211_mgmt *mgmt = (void *)frame; in fils_decrypt_assoc_resp() local
283 capab = (u8 *)&mgmt->u.assoc_resp.capab_info; in fils_decrypt_assoc_resp()
[all …]
Dagg-rx.c207 struct ieee80211_mgmt *mgmt; in ieee80211_send_addba_resp() local
211 skb = dev_alloc_skb(sizeof(*mgmt) + in ieee80211_send_addba_resp()
218 mgmt = skb_put_zero(skb, 24); in ieee80211_send_addba_resp()
219 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_addba_resp()
220 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_resp()
224 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_resp()
226 memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_addba_resp()
228 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
230 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_addba_resp()
233 skb_put(skb, 1 + sizeof(mgmt->u.action.u.addba_resp)); in ieee80211_send_addba_resp()
[all …]
Dmesh_hwmp.c110 struct ieee80211_mgmt *mgmt; in mesh_path_sel_frame_tx() local
121 mgmt = skb_put_zero(skb, hdr_len); in mesh_path_sel_frame_tx()
122 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mesh_path_sel_frame_tx()
125 memcpy(mgmt->da, da, ETH_ALEN); in mesh_path_sel_frame_tx()
126 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx()
128 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx()
129 mgmt->u.action.category = WLAN_CATEGORY_MESH_ACTION; in mesh_path_sel_frame_tx()
130 mgmt->u.action.u.mesh_action.action_code = in mesh_path_sel_frame_tx()
241 struct ieee80211_mgmt *mgmt; in mesh_path_error_tx() local
257 mgmt = skb_put_zero(skb, hdr_len); in mesh_path_error_tx()
[all …]
Dht.c466 struct ieee80211_mgmt *mgmt; in ieee80211_send_delba() local
469 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_delba()
474 mgmt = skb_put_zero(skb, 24); in ieee80211_send_delba()
475 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_delba()
476 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba()
480 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba()
482 memcpy(mgmt->bssid, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_send_delba()
484 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_delba()
486 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_delba()
489 skb_put(skb, 1 + sizeof(mgmt->u.action.u.delba)); in ieee80211_send_delba()
[all …]
Dmesh.c19 bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt) in mesh_action_is_path_sel() argument
21 return (mgmt->u.action.u.mesh_action.action_code == in mesh_action_is_path_sel()
970 struct ieee80211_mgmt *mgmt; in ieee80211_mesh_build_beacon() local
1031 mgmt = skb_put_zero(skb, hdr_len); in ieee80211_mesh_build_beacon()
1032 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_mesh_build_beacon()
1034 eth_broadcast_addr(mgmt->da); in ieee80211_mesh_build_beacon()
1035 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon()
1036 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon()
1037 ieee80211_mps_set_frame_flags(sdata, NULL, (void *) mgmt); in ieee80211_mesh_build_beacon()
1038 mgmt->u.beacon.beacon_int = in ieee80211_mesh_build_beacon()
[all …]
Dmesh_plink.c16 #define PLINK_CNF_AID(mgmt) ((mgmt)->u.action.u.self_prot.variable + 2) argument
219 struct ieee80211_mgmt *mgmt; in mesh_plink_frame_tx() local
256 mgmt = skb_put_zero(skb, hdr_len); in mesh_plink_frame_tx()
257 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mesh_plink_frame_tx()
259 memcpy(mgmt->da, da, ETH_ALEN); in mesh_plink_frame_tx()
260 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_plink_frame_tx()
261 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_plink_frame_tx()
262 mgmt->u.action.category = WLAN_CATEGORY_SELF_PROTECTED; in mesh_plink_frame_tx()
263 mgmt->u.action.u.self_prot.action_code = action; in mesh_plink_frame_tx()
1113 struct ieee80211_mgmt *mgmt, in mesh_process_plink_frame() argument
[all …]
Dagg-tx.c68 struct ieee80211_mgmt *mgmt; in ieee80211_send_addba_request() local
71 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_addba_request()
77 mgmt = skb_put_zero(skb, 24); in ieee80211_send_addba_request()
78 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_addba_request()
79 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
83 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
85 memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); in ieee80211_send_addba_request()
87 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_request()
89 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_addba_request()
92 skb_put(skb, 1 + sizeof(mgmt->u.action.u.addba_req)); in ieee80211_send_addba_request()
[all …]
Drx.c1047 struct ieee80211_mgmt *mgmt; in ieee80211_rx_mesh_check() local
1059 mgmt = (struct ieee80211_mgmt *)hdr; in ieee80211_rx_mesh_check()
1060 category = mgmt->u.action.category; in ieee80211_rx_mesh_check()
2411 struct ieee80211_mgmt *mgmt = (void *)rx->skb->data; in ieee80211_drop_unencrypted_mgmt() local
2412 __le16 fc = mgmt->frame_control; in ieee80211_drop_unencrypted_mgmt()
2423 mgmt->u.action.category == WLAN_CATEGORY_PROTECTED_DUAL_OF_ACTION) in ieee80211_drop_unencrypted_mgmt()
2470 if (is_unicast_ether_addr(mgmt->da) && in ieee80211_drop_unencrypted_mgmt()
3277 struct ieee80211_mgmt *mgmt, in ieee80211_process_sa_query_req() argument
3284 if (!ether_addr_equal(mgmt->da, sdata->vif.addr)) { in ieee80211_process_sa_query_req()
3289 if (!ether_addr_equal(mgmt->sa, sdata->deflink.u.mgd.bssid) || in ieee80211_process_sa_query_req()
[all …]
Dmlme.c1384 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()
[all …]
Dspectmgmt.c235 struct ieee80211_mgmt *mgmt, in ieee80211_process_measurement_req() argument
246 &mgmt->u.action.u.measurement.msr_elem, in ieee80211_process_measurement_req()
247 mgmt->sa, mgmt->bssid, in ieee80211_process_measurement_req()
248 mgmt->u.action.u.measurement.dialog_token); in ieee80211_process_measurement_req()
Diface.c1512 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_iface_process_skb() local
1514 if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_iface_process_skb()
1515 mgmt->u.action.category == WLAN_CATEGORY_BACK) { in ieee80211_iface_process_skb()
1520 sta = sta_info_get_bss(sdata, mgmt->sa); in ieee80211_iface_process_skb()
1522 switch (mgmt->u.action.u.addba_req.action_code) { in ieee80211_iface_process_skb()
1525 mgmt, len); in ieee80211_iface_process_skb()
1529 mgmt, len); in ieee80211_iface_process_skb()
1533 mgmt, len); in ieee80211_iface_process_skb()
1541 } else if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_iface_process_skb()
1542 mgmt->u.action.category == WLAN_CATEGORY_VHT) { in ieee80211_iface_process_skb()
[all …]
Dscan.c166 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_bss_info_update() argument
169 bool beacon = ieee80211_is_beacon(mgmt->frame_control) || in ieee80211_bss_info_update()
170 ieee80211_is_s1g_beacon(mgmt->frame_control); in ieee80211_bss_info_update()
206 mgmt, len, GFP_ATOMIC); in ieee80211_bss_info_update()
240 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_scan_rx() local
246 if (!ieee80211_is_probe_resp(mgmt->frame_control) && in ieee80211_scan_rx()
247 !ieee80211_is_beacon(mgmt->frame_control) && in ieee80211_scan_rx()
248 !ieee80211_is_s1g_beacon(mgmt->frame_control)) in ieee80211_scan_rx()
251 if (ieee80211_is_s1g_beacon(mgmt->frame_control)) { in ieee80211_scan_rx()
252 if (ieee80211_is_s1g_short_beacon(mgmt->frame_control)) in ieee80211_scan_rx()
[all …]
Dmesh_sync.c82 struct ieee80211_mgmt *mgmt, unsigned int len, in mesh_sync_offset_rx_bcn_presp() argument
110 sta = sta_info_get(sdata, mgmt->sa); in mesh_sync_offset_rx_bcn_presp()
127 t_t = le64_to_cpu(mgmt->u.beacon.timestamp); in mesh_sync_offset_rx_bcn_presp()
Doffchannel.c773 const struct ieee80211_mgmt *mgmt = (void *)params->buf; in ieee80211_mgmt_tx() local
811 sta = sta_info_get_bss(sdata, mgmt->da); in ieee80211_mgmt_tx()
814 if (!ieee80211_is_action(mgmt->frame_control) || in ieee80211_mgmt_tx()
815 mgmt->u.action.category == WLAN_CATEGORY_PUBLIC || in ieee80211_mgmt_tx()
816 mgmt->u.action.category == WLAN_CATEGORY_SELF_PROTECTED || in ieee80211_mgmt_tx()
817 mgmt->u.action.category == WLAN_CATEGORY_SPECTRUM_MGMT) { in ieee80211_mgmt_tx()
840 memcmp(sdata->vif.cfg.ap_addr, mgmt->bssid, ETH_ALEN))) in ieee80211_mgmt_tx()
881 ether_addr_equal(sdata->vif.addr, mgmt->sa)) { in ieee80211_mgmt_tx()
886 if (ether_addr_equal(conf->addr, mgmt->sa)) in ieee80211_mgmt_tx()
Dutil.c1819 struct ieee80211_mgmt *mgmt; in ieee80211_send_auth() local
1847 mgmt = skb_put_zero(skb, 24 + 6); in ieee80211_send_auth()
1848 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_auth()
1850 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_auth()
1851 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_auth()
1852 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_send_auth()
1853 mgmt->u.auth.auth_alg = cpu_to_le16(auth_alg); in ieee80211_send_auth()
1854 mgmt->u.auth.auth_transaction = cpu_to_le16(transaction); in ieee80211_send_auth()
1855 mgmt->u.auth.status_code = cpu_to_le16(status); in ieee80211_send_auth()
1862 mgmt->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); in ieee80211_send_auth()
[all …]
Dvht.c708 struct ieee80211_mgmt *mgmt) in ieee80211_process_mu_groups() argument
715 if (!memcmp(mgmt->u.action.u.vht_group_notif.position, in ieee80211_process_mu_groups()
717 !memcmp(mgmt->u.action.u.vht_group_notif.membership, in ieee80211_process_mu_groups()
722 mgmt->u.action.u.vht_group_notif.membership, in ieee80211_process_mu_groups()
725 mgmt->u.action.u.vht_group_notif.position, in ieee80211_process_mu_groups()
Dmesh.h320 struct ieee80211_mgmt *mgmt, size_t len);
342 struct ieee80211_mgmt *mgmt, size_t len,
363 bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt);
Dtdls.c907 struct ieee80211_mgmt *mgmt; in ieee80211_prep_tdls_direct() local
909 mgmt = skb_put_zero(skb, 24); in ieee80211_prep_tdls_direct()
910 memcpy(mgmt->da, peer, ETH_ALEN); in ieee80211_prep_tdls_direct()
911 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_prep_tdls_direct()
912 memcpy(mgmt->bssid, link->u.mgd.bssid, ETH_ALEN); in ieee80211_prep_tdls_direct()
913 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_prep_tdls_direct()
918 skb_put(skb, 1 + sizeof(mgmt->u.action.u.tdls_discover_resp)); in ieee80211_prep_tdls_direct()
919 mgmt->u.action.category = WLAN_CATEGORY_PUBLIC; in ieee80211_prep_tdls_direct()
920 mgmt->u.action.u.tdls_discover_resp.action_code = in ieee80211_prep_tdls_direct()
922 mgmt->u.action.u.tdls_discover_resp.dialog_token = in ieee80211_prep_tdls_direct()
[all …]
Dstatus.c186 struct ieee80211_mgmt *mgmt = (void *) skb->data; in ieee80211_frame_acked() local
190 if (ieee80211_is_data_qos(mgmt->frame_control)) { in ieee80211_frame_acked()
198 if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_frame_acked()
199 !ieee80211_has_protected(mgmt->frame_control) && in ieee80211_frame_acked()
200 mgmt->u.action.category == WLAN_CATEGORY_HT && in ieee80211_frame_acked()
201 mgmt->u.action.u.ht_smps.action == WLAN_HT_ACTION_SMPS && in ieee80211_frame_acked()
205 switch (mgmt->u.action.u.ht_smps.smps_control) { in ieee80211_frame_acked()
/net/wireless/
Dmlme.c30 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)data->buf; in cfg80211_rx_assoc_resp() local
35 .resp_ie = mgmt->u.assoc_resp.variable, in cfg80211_rx_assoc_resp()
39 .status = le16_to_cpu(mgmt->u.assoc_resp.status_code), in cfg80211_rx_assoc_resp()
63 cr.resp_ie = (u8 *)&mgmt->u.s1g_assoc_resp.variable; in cfg80211_rx_assoc_resp()
114 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_deauth() local
115 const u8 *bssid = mgmt->bssid; in cfg80211_process_deauth()
116 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); in cfg80211_process_deauth()
117 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth()
133 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_disassoc() local
134 const u8 *bssid = mgmt->bssid; in cfg80211_process_disassoc()
[all …]
Dscan.c3112 struct ieee80211_mgmt *mgmt, size_t len, in cfg80211_inform_bss_frame_data() argument
3126 if (WARN_ON(!mgmt)) in cfg80211_inform_bss_frame_data()
3135 trace_cfg80211_inform_bss_frame(wiphy, data, mgmt, len); in cfg80211_inform_bss_frame_data()
3137 if (ieee80211_is_s1g_beacon(mgmt->frame_control)) { in cfg80211_inform_bss_frame_data()
3138 ext = (void *) mgmt; in cfg80211_inform_bss_frame_data()
3140 if (ieee80211_is_s1g_short_beacon(mgmt->frame_control)) in cfg80211_inform_bss_frame_data()
3149 ie = mgmt->u.probe_resp.variable; in cfg80211_inform_bss_frame_data()
3154 if (ieee80211_is_s1g_short_beacon(mgmt->frame_control)) in cfg80211_inform_bss_frame_data()
3169 bssid = mgmt->bssid; in cfg80211_inform_bss_frame_data()
3170 beacon_interval = le16_to_cpu(mgmt->u.probe_resp.beacon_int); in cfg80211_inform_bss_frame_data()
[all …]
/net/bluetooth/
Dmgmt_util.c69 bt_cb(skb)->mgmt.hdev = hdev; in mgmt_alloc_skb()
70 bt_cb(skb)->mgmt.opcode = opcode; in mgmt_alloc_skb()
86 hdev = bt_cb(skb)->mgmt.hdev; in mgmt_send_event_skb()
93 hci_send_monitor_ctrl_event(hdev, bt_cb(skb)->mgmt.opcode, in mgmt_send_event_skb()
98 hdr->opcode = cpu_to_le16(bt_cb(skb)->mgmt.opcode); in mgmt_send_event_skb()
DMakefile15 bluetooth-y := af_bluetooth.o hci_core.o hci_conn.o hci_event.o mgmt.o \

12