Home
last modified time | relevance | path

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

/linux-4.1.27/net/wireless/
Dmlme.c27 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_rx_assoc_resp() local
28 u8 *ie = mgmt->u.assoc_resp.variable; in cfg80211_rx_assoc_resp()
30 u16 status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code); in cfg80211_rx_assoc_resp()
48 __cfg80211_connect_result(dev, mgmt->bssid, NULL, 0, ie, len - ieoffs, in cfg80211_rx_assoc_resp()
67 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_deauth() local
68 const u8 *bssid = mgmt->bssid; in cfg80211_process_deauth()
69 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); in cfg80211_process_deauth()
70 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth()
86 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_disassoc() local
87 const u8 *bssid = mgmt->bssid; in cfg80211_process_disassoc()
[all …]
Dscan.c1029 struct ieee80211_mgmt *mgmt, size_t len, in cfg80211_inform_bss_width_frame() argument
1043 trace_cfg80211_inform_bss_width_frame(wiphy, rx_channel, scan_width, mgmt, in cfg80211_inform_bss_width_frame()
1046 if (WARN_ON(!mgmt)) in cfg80211_inform_bss_width_frame()
1059 channel = cfg80211_get_bss_channel(wiphy, mgmt->u.beacon.variable, in cfg80211_inform_bss_width_frame()
1068 ies->tsf = le64_to_cpu(mgmt->u.probe_resp.timestamp); in cfg80211_inform_bss_width_frame()
1069 ies->from_beacon = ieee80211_is_beacon(mgmt->frame_control); in cfg80211_inform_bss_width_frame()
1070 memcpy(ies->data, mgmt->u.probe_resp.variable, ielen); in cfg80211_inform_bss_width_frame()
1072 if (ieee80211_is_probe_resp(mgmt->frame_control)) in cfg80211_inform_bss_width_frame()
1078 memcpy(tmp.pub.bssid, mgmt->bssid, ETH_ALEN); in cfg80211_inform_bss_width_frame()
1082 tmp.pub.beacon_interval = le16_to_cpu(mgmt->u.probe_resp.beacon_int); in cfg80211_inform_bss_width_frame()
[all …]
Dsme.c316 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_sme_rx_auth() local
317 u16 status_code = le16_to_cpu(mgmt->u.auth.status_code); in cfg80211_sme_rx_auth()
350 __cfg80211_connect_result(wdev->netdev, mgmt->bssid, in cfg80211_sme_rx_auth()
Dtrace.h2673 struct ieee80211_mgmt *mgmt, size_t len,
2675 TP_ARGS(wiphy, channel, scan_width, mgmt, len, signal),
2680 __dynamic_array(u8, mgmt, len)
2687 if (mgmt)
2688 memcpy(__get_dynamic_array(mgmt), mgmt, len);
Dnl80211.c11412 const struct ieee80211_mgmt *mgmt = (void *)buf; in cfg80211_rx_unprot_mlme_mgmt() local
11418 if (ieee80211_is_deauth(mgmt->frame_control)) in cfg80211_rx_unprot_mlme_mgmt()
/linux-4.1.27/net/mac80211/
Dagg-rx.c191 struct ieee80211_mgmt *mgmt; in ieee80211_send_addba_resp() local
194 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_addba_resp()
199 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); in ieee80211_send_addba_resp()
200 memset(mgmt, 0, 24); in ieee80211_send_addba_resp()
201 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_addba_resp()
202 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_resp()
206 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_resp()
208 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
210 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
212 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_addba_resp()
[all …]
Dibss.c49 struct ieee80211_mgmt *mgmt; in ieee80211_ibss_build_presp() local
75 mgmt = (void *) presp->head; in ieee80211_ibss_build_presp()
76 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_ibss_build_presp()
78 eth_broadcast_addr(mgmt->da); in ieee80211_ibss_build_presp()
79 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_ibss_build_presp()
80 memcpy(mgmt->bssid, ifibss->bssid, ETH_ALEN); in ieee80211_ibss_build_presp()
81 mgmt->u.beacon.beacon_int = cpu_to_le16(beacon_int); in ieee80211_ibss_build_presp()
82 mgmt->u.beacon.timestamp = cpu_to_le64(tsf); in ieee80211_ibss_build_presp()
83 mgmt->u.beacon.capab_info = cpu_to_le16(capability); in ieee80211_ibss_build_presp()
85 pos = (u8 *)mgmt + offsetof(struct ieee80211_mgmt, u.beacon.variable); in ieee80211_ibss_build_presp()
[all …]
Dmesh_hwmp.c114 struct ieee80211_mgmt *mgmt; in mesh_path_sel_frame_tx() local
117 sizeof(mgmt->u.action.u.mesh_action); in mesh_path_sel_frame_tx()
125 mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); in mesh_path_sel_frame_tx()
126 memset(mgmt, 0, hdr_len); in mesh_path_sel_frame_tx()
127 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mesh_path_sel_frame_tx()
130 memcpy(mgmt->da, da, ETH_ALEN); in mesh_path_sel_frame_tx()
131 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx()
133 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx()
134 mgmt->u.action.category = WLAN_CATEGORY_MESH_ACTION; in mesh_path_sel_frame_tx()
135 mgmt->u.action.u.mesh_action.action_code = in mesh_path_sel_frame_tx()
[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()
615 struct ieee80211_mgmt *mgmt; in ieee80211_mesh_build_beacon() local
622 sizeof(mgmt->u.beacon); in ieee80211_mesh_build_beacon()
660 mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); in ieee80211_mesh_build_beacon()
661 memset(mgmt, 0, hdr_len); in ieee80211_mesh_build_beacon()
662 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_mesh_build_beacon()
664 eth_broadcast_addr(mgmt->da); in ieee80211_mesh_build_beacon()
665 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon()
666 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon()
[all …]
Dht.c364 struct ieee80211_mgmt *mgmt; in ieee80211_send_delba() local
367 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_delba()
372 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); in ieee80211_send_delba()
373 memset(mgmt, 0, 24); in ieee80211_send_delba()
374 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_delba()
375 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba()
379 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba()
381 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_delba()
383 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_delba()
385 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_delba()
[all …]
Dmesh_plink.c265 struct ieee80211_mgmt *mgmt; in mesh_plink_frame_tx() local
270 sizeof(mgmt->u.action.u.self_prot); in mesh_plink_frame_tx()
289 mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); in mesh_plink_frame_tx()
290 memset(mgmt, 0, hdr_len); in mesh_plink_frame_tx()
291 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mesh_plink_frame_tx()
293 memcpy(mgmt->da, da, ETH_ALEN); in mesh_plink_frame_tx()
294 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_plink_frame_tx()
295 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_plink_frame_tx()
296 mgmt->u.action.category = WLAN_CATEGORY_SELF_PROTECTED; in mesh_plink_frame_tx()
297 mgmt->u.action.u.self_prot.action_code = action; in mesh_plink_frame_tx()
[all …]
Dagg-tx.c69 struct ieee80211_mgmt *mgmt; in ieee80211_send_addba_request() local
72 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_addba_request()
78 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); in ieee80211_send_addba_request()
79 memset(mgmt, 0, 24); in ieee80211_send_addba_request()
80 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_addba_request()
81 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
85 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
87 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_request()
89 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_request()
91 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_addba_request()
[all …]
Dmlme.c602 struct ieee80211_mgmt *mgmt; in ieee80211_send_assoc() local
654 sizeof(*mgmt) + /* bit too much but doesn't matter */ in ieee80211_send_assoc()
688 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); in ieee80211_send_assoc()
689 memset(mgmt, 0, 24); in ieee80211_send_assoc()
690 memcpy(mgmt->da, assoc_data->bss->bssid, ETH_ALEN); in ieee80211_send_assoc()
691 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_assoc()
692 memcpy(mgmt->bssid, assoc_data->bss->bssid, ETH_ALEN); in ieee80211_send_assoc()
696 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc()
698 mgmt->u.reassoc_req.capab_info = cpu_to_le16(capab); in ieee80211_send_assoc()
699 mgmt->u.reassoc_req.listen_interval = in ieee80211_send_assoc()
[all …]
Dspectmgmt.c229 struct ieee80211_mgmt *mgmt, in ieee80211_process_measurement_req() argument
240 &mgmt->u.action.u.measurement.msr_elem, in ieee80211_process_measurement_req()
241 mgmt->sa, mgmt->bssid, in ieee80211_process_measurement_req()
242 mgmt->u.action.u.measurement.dialog_token); in ieee80211_process_measurement_req()
Drx.c720 struct ieee80211_mgmt *mgmt; in ieee80211_rx_mesh_check() local
732 mgmt = (struct ieee80211_mgmt *)hdr; in ieee80211_rx_mesh_check()
733 category = mgmt->u.action.category; in ieee80211_rx_mesh_check()
2506 struct ieee80211_mgmt *mgmt, in ieee80211_process_sa_query_req() argument
2513 if (!ether_addr_equal(mgmt->da, sdata->vif.addr)) { in ieee80211_process_sa_query_req()
2518 if (!ether_addr_equal(mgmt->sa, sdata->u.mgd.bssid) || in ieee80211_process_sa_query_req()
2519 !ether_addr_equal(mgmt->bssid, sdata->u.mgd.bssid)) { in ieee80211_process_sa_query_req()
2536 memcpy(resp->da, mgmt->sa, ETH_ALEN); in ieee80211_process_sa_query_req()
2545 mgmt->u.action.u.sa_query.trans_id, in ieee80211_process_sa_query_req()
2554 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) rx->skb->data; in ieee80211_rx_h_mgmt_check() local
[all …]
Dutil.c1274 struct ieee80211_mgmt *mgmt; in ieee80211_send_auth() local
1285 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24 + 6); in ieee80211_send_auth()
1286 memset(mgmt, 0, 24 + 6); in ieee80211_send_auth()
1287 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_auth()
1289 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_auth()
1290 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_auth()
1291 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_send_auth()
1292 mgmt->u.auth.auth_alg = cpu_to_le16(auth_alg); in ieee80211_send_auth()
1293 mgmt->u.auth.auth_transaction = cpu_to_le16(transaction); in ieee80211_send_auth()
1294 mgmt->u.auth.status_code = cpu_to_le16(status); in ieee80211_send_auth()
[all …]
Dmesh_sync.c80 struct ieee80211_mgmt *mgmt, in mesh_sync_offset_rx_bcn_presp() argument
111 sta = sta_info_get(sdata, mgmt->sa); in mesh_sync_offset_rx_bcn_presp()
129 t_t = le64_to_cpu(mgmt->u.beacon.timestamp); in mesh_sync_offset_rx_bcn_presp()
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()
85 scan_width, mgmt, len, signal, in ieee80211_bss_info_update()
168 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_scan_rx() local
176 (!ieee80211_is_probe_resp(mgmt->frame_control) && in ieee80211_scan_rx()
177 !ieee80211_is_beacon(mgmt->frame_control))) in ieee80211_scan_rx()
186 if (ieee80211_is_probe_resp(mgmt->frame_control)) { in ieee80211_scan_rx()
197 (ether_addr_equal(mgmt->da, sdata1->vif.addr) || in ieee80211_scan_rx()
200 (ether_addr_equal(mgmt->da, sdata2->vif.addr) || in ieee80211_scan_rx()
204 elements = mgmt->u.probe_resp.variable; in ieee80211_scan_rx()
[all …]
Dmesh.h278 struct ieee80211_mgmt *mgmt, size_t len);
296 struct ieee80211_mgmt *mgmt, size_t len,
320 bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt);
Dtdls.c758 struct ieee80211_mgmt *mgmt; in ieee80211_prep_tdls_direct() local
760 mgmt = (void *)skb_put(skb, 24); in ieee80211_prep_tdls_direct()
761 memset(mgmt, 0, 24); in ieee80211_prep_tdls_direct()
762 memcpy(mgmt->da, peer, ETH_ALEN); in ieee80211_prep_tdls_direct()
763 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_prep_tdls_direct()
764 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_prep_tdls_direct()
766 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_prep_tdls_direct()
771 skb_put(skb, 1 + sizeof(mgmt->u.action.u.tdls_discover_resp)); in ieee80211_prep_tdls_direct()
772 mgmt->u.action.category = WLAN_CATEGORY_PUBLIC; in ieee80211_prep_tdls_direct()
773 mgmt->u.action.u.tdls_discover_resp.action_code = in ieee80211_prep_tdls_direct()
[all …]
Dstatus.c180 struct ieee80211_mgmt *mgmt = (void *) skb->data; in ieee80211_frame_acked() local
187 if (ieee80211_is_data_qos(mgmt->frame_control)) { in ieee80211_frame_acked()
195 if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_frame_acked()
196 mgmt->u.action.category == WLAN_CATEGORY_HT && in ieee80211_frame_acked()
197 mgmt->u.action.u.ht_smps.action == WLAN_HT_ACTION_SMPS && in ieee80211_frame_acked()
201 switch (mgmt->u.action.u.ht_smps.smps_control) { in ieee80211_frame_acked()
Diface.c1193 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_iface_work() local
1225 } else if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_iface_work()
1226 mgmt->u.action.category == WLAN_CATEGORY_BACK) { in ieee80211_iface_work()
1230 sta = sta_info_get_bss(sdata, mgmt->sa); in ieee80211_iface_work()
1232 switch (mgmt->u.action.u.addba_req.action_code) { in ieee80211_iface_work()
1235 local, sta, mgmt, len); in ieee80211_iface_work()
1239 mgmt, len); in ieee80211_iface_work()
1243 mgmt, len); in ieee80211_iface_work()
1251 } else if (ieee80211_is_data_qos(mgmt->frame_control)) { in ieee80211_iface_work()
1252 struct ieee80211_hdr *hdr = (void *)mgmt; in ieee80211_iface_work()
[all …]
Dieee80211_i.h624 struct ieee80211_mgmt *mgmt,
1573 struct ieee80211_mgmt *mgmt,
1681 struct ieee80211_mgmt *mgmt, size_t len);
1684 struct ieee80211_mgmt *mgmt,
1688 struct ieee80211_mgmt *mgmt,
1723 struct ieee80211_mgmt *mgmt,
Dwpa.c310 int a4_included, mgmt; in ccmp_special_blocks() local
320 mgmt = ieee80211_is_mgmt(hdr->frame_control); in ccmp_special_blocks()
324 if (!mgmt) in ccmp_special_blocks()
349 b_0[1] = qos_tid | (mgmt << 4); in ccmp_special_blocks()
Dcfg.c3255 const struct ieee80211_mgmt *mgmt = (void *)params->buf; in ieee80211_mgmt_tx() local
3289 if (!ieee80211_is_action(mgmt->frame_control) || in ieee80211_mgmt_tx()
3290 mgmt->u.action.category == WLAN_CATEGORY_PUBLIC || in ieee80211_mgmt_tx()
3291 mgmt->u.action.category == WLAN_CATEGORY_SELF_PROTECTED || in ieee80211_mgmt_tx()
3292 mgmt->u.action.category == WLAN_CATEGORY_SPECTRUM_MGMT) in ieee80211_mgmt_tx()
3295 sta = sta_info_get(sdata, mgmt->da); in ieee80211_mgmt_tx()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_mlme_ext.c319 rtw_update_TSF(struct mlme_ext_priv *pmlmeext, struct ieee80211_mgmt *mgmt) in rtw_update_TSF() argument
321 pmlmeext->TSFValue = get_unaligned_le64(&mgmt->u.beacon.timestamp); in rtw_update_TSF()
639 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) skb->data; in mgt_dispatcher23a() local
644 if (!ieee80211_is_mgmt(mgmt->frame_control)) in mgt_dispatcher23a()
649 if (!ether_addr_equal(mgmt->da, myid(&padapter->eeprompriv)) && in mgt_dispatcher23a()
650 !is_broadcast_ether_addr(mgmt->da)) in mgt_dispatcher23a()
655 stype = le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE; in mgt_dispatcher23a()
666 psta = rtw_get_stainfo23a(&padapter->stapriv, mgmt->sa); in mgt_dispatcher23a()
669 if (ieee80211_has_retry(mgmt->frame_control)) { in mgt_dispatcher23a()
731 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) skb->data; in OnProbeReq23a() local
[all …]
Drtw_wlan_util.c859 struct ieee80211_mgmt *mgmt, u32 pkt_len) in rtw_check_bcn_info23a() argument
872 if (unlikely(!ieee80211_is_beacon(mgmt->frame_control))) { in rtw_check_bcn_info23a()
878 if (!ether_addr_equal(cur_network->network.MacAddress, mgmt->bssid)) { in rtw_check_bcn_info23a()
880 __func__, mgmt->bssid, in rtw_check_bcn_info23a()
890 p = cfg80211_find_ie(WLAN_EID_DS_PARAMS, mgmt->u.beacon.variable, in rtw_check_bcn_info23a()
898 mgmt->u.beacon.variable, pie_len); in rtw_check_bcn_info23a()
917 p = cfg80211_find_ie(WLAN_EID_SSID, mgmt->u.beacon.variable, pie_len); in rtw_check_bcn_info23a()
941 val16 = le16_to_cpu(mgmt->u.beacon.capab_info); in rtw_check_bcn_info23a()
956 p = cfg80211_find_ie(WLAN_EID_RSN, mgmt->u.beacon.variable, pie_len); in rtw_check_bcn_info23a()
971 mgmt->u.beacon.variable, pie_len); in rtw_check_bcn_info23a()
[all …]
Drtw_ap.c771 struct ieee80211_mgmt *mgmt, unsigned int len) in rtw_check_beacon_data23a() argument
789 u8 *pbuf = mgmt->u.beacon.variable; in rtw_check_beacon_data23a()
/linux-4.1.27/drivers/staging/rtl8723au/hal/
Drtl8723a_cmd.c188 struct ieee80211_mgmt *mgmt; in ConstructBeacon() local
197 mgmt = (struct ieee80211_mgmt *)pframe; in ConstructBeacon()
199 mgmt->frame_control = in ConstructBeacon()
202 ether_addr_copy(mgmt->da, bc_addr); in ConstructBeacon()
203 ether_addr_copy(mgmt->sa, myid(&padapter->eeprompriv)); in ConstructBeacon()
204 ether_addr_copy(mgmt->bssid, get_my_bssid23a(cur_network)); in ConstructBeacon()
207 mgmt->seq_ctrl = 0; in ConstructBeacon()
212 &mgmt->u.beacon.beacon_int); in ConstructBeacon()
215 &mgmt->u.beacon.capab_info); in ConstructBeacon()
217 pframe = mgmt->u.beacon.variable; in ConstructBeacon()
[all …]
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dtdls.c678 struct ieee80211_mgmt *mgmt; in mwifiex_construct_tdls_action_frame() local
687 mgmt = (void *)skb_put(skb, offsetof(struct ieee80211_mgmt, u)); in mwifiex_construct_tdls_action_frame()
689 memset(mgmt, 0, 24); in mwifiex_construct_tdls_action_frame()
690 memcpy(mgmt->da, peer, ETH_ALEN); in mwifiex_construct_tdls_action_frame()
691 memcpy(mgmt->sa, priv->curr_addr, ETH_ALEN); in mwifiex_construct_tdls_action_frame()
692 memcpy(mgmt->bssid, priv->cfg_bssid, ETH_ALEN); in mwifiex_construct_tdls_action_frame()
693 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mwifiex_construct_tdls_action_frame()
701 skb_put(skb, sizeof(mgmt->u.action.u.tdls_discover_resp) + 1); in mwifiex_construct_tdls_action_frame()
702 mgmt->u.action.category = WLAN_CATEGORY_PUBLIC; in mwifiex_construct_tdls_action_frame()
703 mgmt->u.action.u.tdls_discover_resp.action_code = in mwifiex_construct_tdls_action_frame()
[all …]
Dcfg80211.c161 const struct ieee80211_mgmt *mgmt; in mwifiex_cfg80211_mgmt_tx() local
170 mgmt = (const struct ieee80211_mgmt *)buf; in mwifiex_cfg80211_mgmt_tx()
172 ieee80211_is_probe_resp(mgmt->frame_control)) { in mwifiex_cfg80211_mgmt_tx()
199 if (ieee80211_is_action(mgmt->frame_control)) in mwifiex_cfg80211_mgmt_tx()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
Ddebug.c58 stats->mgmt[MANAGEMENT_ASSOC_REQ]++; in il_update_stats()
61 stats->mgmt[MANAGEMENT_ASSOC_RESP]++; in il_update_stats()
64 stats->mgmt[MANAGEMENT_REASSOC_REQ]++; in il_update_stats()
67 stats->mgmt[MANAGEMENT_REASSOC_RESP]++; in il_update_stats()
70 stats->mgmt[MANAGEMENT_PROBE_REQ]++; in il_update_stats()
73 stats->mgmt[MANAGEMENT_PROBE_RESP]++; in il_update_stats()
76 stats->mgmt[MANAGEMENT_BEACON]++; in il_update_stats()
79 stats->mgmt[MANAGEMENT_ATIM]++; in il_update_stats()
82 stats->mgmt[MANAGEMENT_DISASSOC]++; in il_update_stats()
85 stats->mgmt[MANAGEMENT_AUTH]++; in il_update_stats()
[all …]
Dcommon.h1066 u32 mgmt[MANAGEMENT_MAX]; member
D4965-mac.c3776 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)beacon; in il4965_set_beacon_tim() local
3782 tim_idx = mgmt->u.beacon.variable - beacon; in il4965_set_beacon_tim()
/linux-4.1.27/include/linux/
Dieee80211.h2425 struct ieee80211_mgmt *mgmt = (void *)hdr; in ieee80211_is_public_action() local
2431 return mgmt->u.action.category == WLAN_CATEGORY_PUBLIC; in ieee80211_is_public_action()
2511 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_action_contains_tpc() local
2513 if (!ieee80211_is_action(mgmt->frame_control)) in ieee80211_action_contains_tpc()
2517 sizeof(mgmt->u.action.u.tpc_report)) in ieee80211_action_contains_tpc()
2531 if (mgmt->u.action.category != WLAN_CATEGORY_SPECTRUM_MGMT && in ieee80211_action_contains_tpc()
2532 mgmt->u.action.category != WLAN_CATEGORY_RADIO_MEASUREMENT) in ieee80211_action_contains_tpc()
2536 if (mgmt->u.action.u.tpc_report.action_code != in ieee80211_action_contains_tpc()
2540 if (mgmt->u.action.u.tpc_report.tpc_elem_id != WLAN_EID_TPC_REPORT || in ieee80211_action_contains_tpc()
2541 mgmt->u.action.u.tpc_report.tpc_elem_length != in ieee80211_action_contains_tpc()
/linux-4.1.27/arch/mips/cavium-octeon/
Docteon-platform.c646 int mgmt; in octeon_prune_device_tree() local
652 mgmt = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
653 if (mgmt < 0) in octeon_prune_device_tree()
657 octeon_fdt_rm_ethernet(mgmt); in octeon_prune_device_tree()
662 octeon_fdt_set_phy(mgmt, phy_addr); in octeon_prune_device_tree()
663 octeon_fdt_set_mac_addr(mgmt, &mac_addr_base); in octeon_prune_device_tree()
/linux-4.1.27/net/bluetooth/
DMakefile14 bluetooth-y := af_bluetooth.o hci_core.o hci_conn.o hci_event.o mgmt.o \
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_main.c1045 struct hostap_ieee80211_mgmt *mgmt; in prism2_sta_send_mgmt() local
1053 mgmt = (struct hostap_ieee80211_mgmt *) in prism2_sta_send_mgmt()
1055 memset(mgmt, 0, IEEE80211_MGMT_HDR_LEN); in prism2_sta_send_mgmt()
1056 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | stype); in prism2_sta_send_mgmt()
1057 memcpy(mgmt->da, dst, ETH_ALEN); in prism2_sta_send_mgmt()
1058 memcpy(mgmt->sa, dev->dev_addr, ETH_ALEN); in prism2_sta_send_mgmt()
1059 memcpy(mgmt->bssid, dst, ETH_ALEN); in prism2_sta_send_mgmt()
Dhostap_80211_rx.c396 struct hostap_ieee80211_mgmt *mgmt; in hostap_rx_sta_beacon() local
403 if (skb->len < IEEE80211_MGMT_HDR_LEN + sizeof(mgmt->u.beacon)) in hostap_rx_sta_beacon()
406 mgmt = (struct hostap_ieee80211_mgmt *) skb->data; in hostap_rx_sta_beacon()
407 pos = mgmt->u.beacon.variable; in hostap_rx_sta_beacon()
447 bss = __hostap_get_bss(local, mgmt->bssid, ssid, ssid_len); in hostap_rx_sta_beacon()
449 bss = __hostap_add_bss(local, mgmt->bssid, ssid, ssid_len); in hostap_rx_sta_beacon()
453 bss->capab_info = le16_to_cpu(mgmt->u.beacon.capab_info); in hostap_rx_sta_beacon()
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_bsg.c1111 switch (ql84_mgmt->mgmt.cmd) { in qla84xx_mgmt_cmd()
1146 if (ql84_mgmt->mgmt.cmd == QLA84_MGMT_READ_MEM) { in qla84xx_mgmt_cmd()
1150 ql84_mgmt->mgmt.mgmtp.u.mem.start_addr); in qla84xx_mgmt_cmd()
1152 } else if (ql84_mgmt->mgmt.cmd == QLA84_MGMT_GET_INFO) { in qla84xx_mgmt_cmd()
1155 cpu_to_le32(ql84_mgmt->mgmt.mgmtp.u.info.type); in qla84xx_mgmt_cmd()
1159 ql84_mgmt->mgmt.mgmtp.u.info.context); in qla84xx_mgmt_cmd()
1201 cpu_to_le32(ql84_mgmt->mgmt.mgmtp.u.mem.start_addr); in qla84xx_mgmt_cmd()
1207 cpu_to_le32(ql84_mgmt->mgmt.mgmtp.u.config.id); in qla84xx_mgmt_cmd()
1210 cpu_to_le32(ql84_mgmt->mgmt.mgmtp.u.config.param0); in qla84xx_mgmt_cmd()
1213 cpu_to_le32(ql84_mgmt->mgmt.mgmtp.u.config.param1); in qla84xx_mgmt_cmd()
[all …]
Dqla_bsg.h151 struct qla84_msg_mgmt mgmt; member
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
Dioctl_cfg80211.c2385 struct ieee80211_mgmt mgmt; in rtw_cfg80211_indicate_sta_disassoc() local
2392 memset(&mgmt, 0, sizeof(struct ieee80211_mgmt)); in rtw_cfg80211_indicate_sta_disassoc()
2405 mgmt.frame_control = in rtw_cfg80211_indicate_sta_disassoc()
2408 ether_addr_copy(mgmt.da, myid(&padapter->eeprompriv)); in rtw_cfg80211_indicate_sta_disassoc()
2409 ether_addr_copy(mgmt.sa, da); in rtw_cfg80211_indicate_sta_disassoc()
2410 ether_addr_copy(mgmt.bssid, get_my_bssid23a(&pmlmeinfo->network)); in rtw_cfg80211_indicate_sta_disassoc()
2412 mgmt.seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); in rtw_cfg80211_indicate_sta_disassoc()
2415 mgmt.u.disassoc.reason_code = cpu_to_le16(reason); in rtw_cfg80211_indicate_sta_disassoc()
2419 cfg80211_rx_mgmt(padapter->rtw_wdev, freq, 0, (u8 *)&mgmt, frame_len, in rtw_cfg80211_indicate_sta_disassoc()
2506 struct ieee80211_mgmt *mgmt; in rtw_cfg80211_monitor_if_xmit_entry() local
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dtxrx.c1459 struct ath6kl_mgmt_buff *mgmt; in ath6kl_rx() local
1464 mgmt = list_first_entry( in ath6kl_rx()
1468 list_del(&mgmt->list); in ath6kl_rx()
1475 mgmt->id, in ath6kl_rx()
1476 mgmt->freq, in ath6kl_rx()
1477 mgmt->wait, in ath6kl_rx()
1478 mgmt->buf, in ath6kl_rx()
1479 mgmt->len, in ath6kl_rx()
1480 mgmt->no_cck); in ath6kl_rx()
1482 kfree(mgmt); in ath6kl_rx()
Dcfg80211.c2756 struct ieee80211_mgmt *mgmt; in ath6kl_start_ap() local
2793 mgmt = (struct ieee80211_mgmt *) info->beacon.head; in ath6kl_start_ap()
2794 ies = mgmt->u.beacon.variable; in ath6kl_start_ap()
3061 const struct ieee80211_mgmt *mgmt; in ath6kl_send_go_probe_resp() local
3063 mgmt = (const struct ieee80211_mgmt *) buf; in ath6kl_send_go_probe_resp()
3072 pos = mgmt->u.probe_resp.variable; in ath6kl_send_go_probe_resp()
3084 mgmt->da, p2p, p2p_len); in ath6kl_send_go_probe_resp()
3098 struct ieee80211_mgmt *mgmt; in ath6kl_mgmt_powersave_ap() local
3105 mgmt = (struct ieee80211_mgmt *) buf; in ath6kl_mgmt_powersave_ap()
3106 if (is_multicast_ether_addr(mgmt->da)) in ath6kl_mgmt_powersave_ap()
[all …]
Dmain.c434 struct ieee80211_mgmt *mgmt = in ath6kl_connect_ap_mode_sta() local
436 if (ieee80211_is_assoc_req(mgmt->frame_control) && in ath6kl_connect_ap_mode_sta()
438 sizeof(mgmt->u.assoc_req)) { in ath6kl_connect_ap_mode_sta()
439 ies = mgmt->u.assoc_req.variable; in ath6kl_connect_ap_mode_sta()
441 } else if (ieee80211_is_reassoc_req(mgmt->frame_control) && in ath6kl_connect_ap_mode_sta()
443 + sizeof(mgmt->u.reassoc_req)) { in ath6kl_connect_ap_mode_sta()
444 ies = mgmt->u.reassoc_req.variable; in ath6kl_connect_ap_mode_sta()
/linux-4.1.27/Documentation/devicetree/bindings/mfd/
Dbfticu.txt18 chassis-mgmt@3,0 {
/linux-4.1.27/drivers/staging/rtl8723au/include/
Drtw_ap.h36 struct ieee80211_mgmt *mgmt, unsigned int len);
Drtw_mlme_ext.h506 struct ieee80211_mgmt *mgmt, uint len,
509 struct ieee80211_mgmt *mgmt, u32 packet_len);
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dhtc_drv_beacon.c200 struct ieee80211_mgmt *mgmt; in ath9k_htc_send_beacon() local
228 mgmt = (struct ieee80211_mgmt *)beacon->data; in ath9k_htc_send_beacon()
229 mgmt->u.beacon.timestamp = avp->tsfadjust; in ath9k_htc_send_beacon()
Drecv.c510 struct ieee80211_mgmt *mgmt; in ath_beacon_dtim_pending_cab() local
514 mgmt = (struct ieee80211_mgmt *)skb->data; in ath_beacon_dtim_pending_cab()
515 pos = mgmt->u.beacon.variable; in ath_beacon_dtim_pending_cab()
Dhtc_drv_txrx.c220 struct ieee80211_mgmt *mgmt; in ath9k_htc_tx_mgmt() local
237 mgmt = (struct ieee80211_mgmt *)skb->data; in ath9k_htc_tx_mgmt()
238 mgmt->u.probe_resp.timestamp = avp->tsfadjust; in ath9k_htc_tx_mgmt()
/linux-4.1.27/drivers/net/wireless/cw1200/
Dtxrx.c554 struct ieee80211_mgmt *mgmt = in cw1200_tx_h_action() local
557 mgmt->u.action.category == WLAN_CATEGORY_BACK) in cw1200_tx_h_action()
798 struct ieee80211_mgmt *mgmt = (void *)skb->data; in cw1200_handle_action_rx() local
801 if (mgmt->u.action.category == WLAN_CATEGORY_BACK) in cw1200_handle_action_rx()
1014 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in cw1200_rx_cb() local
1036 (mgmt->u.action.category == WLAN_CATEGORY_PUBLIC)) { in cw1200_rx_cb()
1047 (mgmt->u.action.category == WLAN_CATEGORY_PUBLIC)) { in cw1200_rx_cb()
Dsta.c2205 struct ieee80211_mgmt *mgmt; in cw1200_upload_beacon() local
2234 mgmt = (void *)frame.skb->data; in cw1200_upload_beacon()
2235 mgmt->frame_control = in cw1200_upload_beacon()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dps.c722 struct ieee80211_mgmt *mgmt = data; in rtl_p2p_noa_ie() local
729 pos = (u8 *)mgmt->u.beacon.variable; in rtl_p2p_noa_ie()
821 struct ieee80211_mgmt *mgmt = data; in rtl_p2p_action_ie() local
828 pos = (u8 *)&mgmt->u.action.category; in rtl_p2p_action_ie()
Dbase.c1258 struct ieee80211_mgmt *mgmt = (void *)skb->data; in rtl_action_proc() local
1277 le16_to_cpu(mgmt->u.action.u.addba_req.capab); in rtl_action_proc()
1754 struct ieee80211_mgmt *mgmt = (void *)data; in rtl_find_ie() local
1757 pos = (u8 *)mgmt->u.beacon.variable; in rtl_find_ie()
1982 struct ieee80211_mgmt *mgmt = (void *)data; in rtl_find_221_ie() local
1986 pos = (u8 *)mgmt->u.beacon.variable; in rtl_find_221_ie()
/linux-4.1.27/drivers/net/wireless/p54/
Dmain.c79 struct ieee80211_mgmt *mgmt = (void *)skb->data; in p54_find_ie() local
82 if (skb->len <= sizeof(mgmt)) in p54_find_ie()
85 pos = (u8 *)mgmt->u.beacon.variable; in p54_find_ie()
/linux-4.1.27/drivers/staging/wlan-ng/
Dp80211netdev.h105 u32 mgmt; member
Dp80211netdev.c935 wlandev->rx.mgmt++; in p80211_rx_typedrop()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_hw.h213 u8 mgmt; member
/linux-4.1.27/arch/powerpc/boot/dts/
Dkmcoge4.dts122 chassis-mgmt@3,0 {
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Drx.c492 struct ieee80211_mgmt *mgmt = (void *)data; in carl9170_find_ie() local
495 pos = (u8 *)mgmt->u.beacon.variable; in carl9170_find_ie()
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2x00dev.c508 struct ieee80211_mgmt *mgmt = (void *)data; in rt2x00lib_find_ie() local
511 pos = (u8 *)mgmt->u.beacon.variable; in rt2x00lib_find_ie()
/linux-4.1.27/drivers/net/wireless/
Dat76c50x-usb.c1773 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in at76_mac80211_tx() local
1792 if (mgmt->frame_control & cpu_to_le16(IEEE80211_STYPE_AUTH)) { in at76_mac80211_tx()
1793 if (!ether_addr_equal_64bits(priv->bssid, mgmt->bssid)) { in at76_mac80211_tx()
1794 memcpy(priv->bssid, mgmt->bssid, ETH_ALEN); in at76_mac80211_tx()
Dmwl8k.c1903 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in mwl8k_txq_xmit() local
1963 mgmt->u.action.category == WLAN_CATEGORY_BACK && in mwl8k_txq_xmit()
1964 mgmt->u.action.u.addba_req.action_code == WLAN_ACTION_ADDBA_REQ && in mwl8k_txq_xmit()
1966 u16 capab = le16_to_cpu(mgmt->u.action.u.addba_req.capab); in mwl8k_txq_xmit()
3607 mwl8k_cmd_use_fixed_rate_ap(struct ieee80211_hw *hw, int mcast, int mgmt) in mwl8k_cmd_use_fixed_rate_ap() argument
3620 cmd->management_rate = mgmt; in mwl8k_cmd_use_fixed_rate_ap()
5615 struct ieee80211_mgmt *mgmt = (void *)skb->data; in mwl8k_finalize_join_worker() local
5618 mgmt->u.beacon.variable, len); in mwl8k_finalize_join_worker()
Dmac80211_hwsim.c1421 struct ieee80211_mgmt *mgmt; in mac80211_hwsim_beacon_tx() local
1442 mgmt = (struct ieee80211_mgmt *) skb->data; in mac80211_hwsim_beacon_tx()
1445 mgmt->u.beacon.timestamp = cpu_to_le64(data->abs_bcn_ts + in mac80211_hwsim_beacon_tx()
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8187/
Ddev.c1072 struct ieee80211_mgmt *mgmt; in rtl8187_beacon_work() local
1088 mgmt = (struct ieee80211_mgmt *)skb->data; in rtl8187_beacon_work()
1089 mgmt->u.beacon.timestamp = cpu_to_le64(rtl8187_get_tsf(dev, vif)); in rtl8187_beacon_work()
/linux-4.1.27/Documentation/networking/
Dl2tp.txt267 sax.pppol2tp.s_session = 0; /* special case: mgmt socket */
269 sax.pppol2tp.d_session = 0; /* special case: mgmt socket */
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dmac-ctxt.c936 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)beacon; in iwl_mvm_mac_ctxt_set_tim() local
940 tim_idx = mgmt->u.beacon.variable - beacon; in iwl_mvm_mac_ctxt_set_tim()
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8180/
Ddev.c1283 struct ieee80211_mgmt *mgmt; in rtl8180_beacon_work() local
1299 mgmt = (struct ieee80211_mgmt *)skb->data; in rtl8180_beacon_work()
1300 mgmt->u.beacon.timestamp = cpu_to_le64(rtl8180_get_tsf(dev, vif)); in rtl8180_beacon_work()
/linux-4.1.27/include/net/
Dcfg80211.h3970 struct ieee80211_mgmt *mgmt, size_t len,
3976 struct ieee80211_mgmt *mgmt, size_t len, in cfg80211_inform_bss_frame() argument
3981 mgmt, len, signal, gfp); in cfg80211_inform_bss_frame()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dcfg80211.c4339 const struct ieee80211_mgmt *mgmt; in brcmf_cfg80211_mgmt_tx() local
4354 mgmt = (const struct ieee80211_mgmt *)buf; in brcmf_cfg80211_mgmt_tx()
4356 if (!ieee80211_is_mgmt(mgmt->frame_control)) { in brcmf_cfg80211_mgmt_tx()
4363 if (ieee80211_is_probe_resp(mgmt->frame_control)) { in brcmf_cfg80211_mgmt_tx()
4386 } else if (ieee80211_is_action(mgmt->frame_control)) { in brcmf_cfg80211_mgmt_tx()
4397 memcpy(&action_frame->da[0], &mgmt->da[0], ETH_ALEN); in brcmf_cfg80211_mgmt_tx()
4398 memcpy(&af_params->bssid[0], &mgmt->bssid[0], ETH_ALEN); in brcmf_cfg80211_mgmt_tx()
4425 brcmf_dbg(TRACE, "Unhandled, fc=%04x!!\n", mgmt->frame_control); in brcmf_cfg80211_mgmt_tx()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
Dbase.c1246 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ath5k_check_ibss_tsf() local
1248 if (le16_to_cpu(mgmt->u.beacon.capab_info) & WLAN_CAPABILITY_IBSS) { in ath5k_check_ibss_tsf()
1255 bc_tstamp = le64_to_cpu(mgmt->u.beacon.timestamp); in ath5k_check_ibss_tsf()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dmain.c91 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)beacon; in iwl_set_beacon_tim() local
97 tim_idx = mgmt->u.beacon.variable - beacon; in iwl_set_beacon_tim()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dmac.c989 struct ieee80211_mgmt *mgmt; in ath10k_mac_setup_bcn_p2p_ie() local
999 mgmt = (void *)bcn->data; in ath10k_mac_setup_bcn_p2p_ie()
1001 mgmt->u.beacon.variable, in ath10k_mac_setup_bcn_p2p_ie()
1002 bcn->len - (mgmt->u.beacon.variable - in ath10k_mac_setup_bcn_p2p_ie()
/linux-4.1.27/Documentation/scsi/
Dscsi_fc_transport.txt71 if vports are to be associated with virtual machines, a XEN mgmt