/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/ |
D | fils_aead.c | 220 struct ieee80211_mgmt *mgmt = (void *)skb->data; in fils_encrypt_assoc_req() local 226 if (ieee80211_is_reassoc_req(mgmt->frame_control)) { in fils_encrypt_assoc_req() 227 capab = (u8 *)&mgmt->u.reassoc_req.capab_info; in fils_encrypt_assoc_req() 228 ies = mgmt->u.reassoc_req.variable; in fils_encrypt_assoc_req() 230 capab = (u8 *)&mgmt->u.assoc_req.capab_info; in fils_encrypt_assoc_req() 231 ies = mgmt->u.assoc_req.variable; in fils_encrypt_assoc_req() 244 addr[0] = mgmt->sa; in fils_encrypt_assoc_req() 247 addr[1] = mgmt->da; in fils_encrypt_assoc_req() 271 struct ieee80211_mgmt *mgmt = (void *)frame; in fils_decrypt_assoc_resp() local 281 capab = (u8 *)&mgmt->u.assoc_resp.capab_info; in fils_decrypt_assoc_resp() [all …]
|
D | ibss.c | 48 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 …]
|
D | agg-rx.c | 220 struct ieee80211_mgmt *mgmt; in ieee80211_send_addba_resp() local 224 skb = dev_alloc_skb(sizeof(*mgmt) + in ieee80211_send_addba_resp() 231 mgmt = skb_put_zero(skb, 24); in ieee80211_send_addba_resp() 232 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_addba_resp() 233 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_resp() 237 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_resp() 239 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_resp() 241 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_resp() 243 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_addba_resp() 246 skb_put(skb, 1 + sizeof(mgmt->u.action.u.addba_resp)); in ieee80211_send_addba_resp() [all …]
|
D | mesh.c | 18 bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt) in mesh_action_is_path_sel() argument 20 return (mgmt->u.action.u.mesh_action.action_code == in mesh_action_is_path_sel() 751 struct ieee80211_mgmt *mgmt; in ieee80211_mesh_build_beacon() local 806 mgmt = skb_put_zero(skb, hdr_len); in ieee80211_mesh_build_beacon() 807 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_mesh_build_beacon() 809 eth_broadcast_addr(mgmt->da); in ieee80211_mesh_build_beacon() 810 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon() 811 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon() 812 ieee80211_mps_set_frame_flags(sdata, NULL, (void *) mgmt); in ieee80211_mesh_build_beacon() 813 mgmt->u.beacon.beacon_int = in ieee80211_mesh_build_beacon() [all …]
|
D | mesh_hwmp.c | 110 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 …]
|
D | ht.c | 414 struct ieee80211_mgmt *mgmt; in ieee80211_send_delba() local 417 skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); in ieee80211_send_delba() 422 mgmt = skb_put_zero(skb, 24); in ieee80211_send_delba() 423 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_delba() 424 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba() 428 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba() 430 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_delba() 432 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_delba() 434 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_delba() 437 skb_put(skb, 1 + sizeof(mgmt->u.action.u.delba)); in ieee80211_send_delba() [all …]
|
D | mesh_plink.c | 16 #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 248 mgmt = skb_put_zero(skb, hdr_len); in mesh_plink_frame_tx() 249 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mesh_plink_frame_tx() 251 memcpy(mgmt->da, da, ETH_ALEN); in mesh_plink_frame_tx() 252 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_plink_frame_tx() 253 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_plink_frame_tx() 254 mgmt->u.action.category = WLAN_CATEGORY_SELF_PROTECTED; in mesh_plink_frame_tx() 255 mgmt->u.action.u.self_prot.action_code = action; in mesh_plink_frame_tx() 1095 struct ieee80211_mgmt *mgmt, in mesh_process_plink_frame() argument [all …]
|
D | mlme.c | 651 struct ieee80211_mgmt *mgmt; in ieee80211_send_assoc() local 699 sizeof(*mgmt) + /* bit too much but doesn't matter */ in ieee80211_send_assoc() 736 mgmt = skb_put_zero(skb, 24); in ieee80211_send_assoc() 737 memcpy(mgmt->da, assoc_data->bss->bssid, ETH_ALEN); in ieee80211_send_assoc() 738 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_assoc() 739 memcpy(mgmt->bssid, assoc_data->bss->bssid, ETH_ALEN); in ieee80211_send_assoc() 743 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_assoc() 745 mgmt->u.reassoc_req.capab_info = cpu_to_le16(capab); in ieee80211_send_assoc() 746 mgmt->u.reassoc_req.listen_interval = in ieee80211_send_assoc() 748 memcpy(mgmt->u.reassoc_req.current_ap, assoc_data->prev_bssid, in ieee80211_send_assoc() [all …]
|
D | agg-tx.c | 68 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->u.mgd.bssid, 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 …]
|
D | spectmgmt.c | 229 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()
|
D | scan.c | 40 …211_channel *channel, int32_t signal, int16_t freq, struct ieee80211_mgmt *mgmt, uint32_t mgmtLen); 154 struct ieee80211_mgmt *mgmt, size_t len, in ieee80211_bss_info_update() argument 157 bool beacon = ieee80211_is_beacon(mgmt->frame_control); in ieee80211_bss_info_update() 209 mgmt, len, GFP_ATOMIC); in ieee80211_bss_info_update() 213 if (ieee80211_is_probe_resp(mgmt->frame_control)) { in ieee80211_bss_info_update() 214 elements = mgmt->u.probe_resp.variable; in ieee80211_bss_info_update() 219 elements = mgmt->u.beacon.variable; in ieee80211_bss_info_update() 226 mgmt->bssid, cbss->bssid); in ieee80211_bss_info_update() 238 inform_bss_frame(channel, bss_meta.signal, freq, mgmt, len); in ieee80211_bss_info_update() 275 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_scan_rx() local [all …]
|
D | rx.c | 1079 struct ieee80211_mgmt *mgmt; in ieee80211_rx_mesh_check() local 1091 mgmt = (struct ieee80211_mgmt *)hdr; in ieee80211_rx_mesh_check() 1092 category = mgmt->u.action.category; in ieee80211_rx_mesh_check() 3000 struct ieee80211_mgmt *mgmt, in ieee80211_process_sa_query_req() argument 3007 if (!ether_addr_equal(mgmt->da, sdata->vif.addr)) { in ieee80211_process_sa_query_req() 3012 if (!ether_addr_equal(mgmt->sa, sdata->u.mgd.bssid) || in ieee80211_process_sa_query_req() 3013 !ether_addr_equal(mgmt->bssid, sdata->u.mgd.bssid)) { in ieee80211_process_sa_query_req() 3029 memcpy(resp->da, mgmt->sa, ETH_ALEN); in ieee80211_process_sa_query_req() 3038 mgmt->u.action.u.sa_query.trans_id, in ieee80211_process_sa_query_req() 3047 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) rx->skb->data; in ieee80211_rx_h_mgmt_check() local [all …]
|
D | mesh_sync.c | 81 struct ieee80211_mgmt *mgmt, in mesh_sync_offset_rx_bcn_presp() argument 112 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()
|
D | util.c | 1543 struct ieee80211_mgmt *mgmt; in ieee80211_send_auth() local 1554 mgmt = skb_put_zero(skb, 24 + 6); in ieee80211_send_auth() 1555 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_auth() 1557 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_auth() 1558 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_auth() 1559 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_send_auth() 1560 mgmt->u.auth.auth_alg = cpu_to_le16(auth_alg); in ieee80211_send_auth() 1561 mgmt->u.auth.auth_transaction = cpu_to_le16(transaction); in ieee80211_send_auth() 1562 mgmt->u.auth.status_code = cpu_to_le16(status); in ieee80211_send_auth() 1567 mgmt->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); in ieee80211_send_auth() [all …]
|
D | iface.c | 1305 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_iface_work() local 1307 if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_iface_work() 1308 mgmt->u.action.category == WLAN_CATEGORY_BACK) { in ieee80211_iface_work() 1312 sta = sta_info_get_bss(sdata, mgmt->sa); in ieee80211_iface_work() 1314 switch (mgmt->u.action.u.addba_req.action_code) { in ieee80211_iface_work() 1317 local, sta, mgmt, len); in ieee80211_iface_work() 1321 mgmt, len); in ieee80211_iface_work() 1325 mgmt, len); in ieee80211_iface_work() 1333 } else if (ieee80211_is_action(mgmt->frame_control) && in ieee80211_iface_work() 1334 mgmt->u.action.category == WLAN_CATEGORY_VHT) { in ieee80211_iface_work() [all …]
|
D | offchannel.c | 785 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()
|
D | vht.c | 555 struct ieee80211_mgmt *mgmt) in ieee80211_process_mu_groups() argument 562 if (!memcmp(mgmt->u.action.u.vht_group_notif.position, in ieee80211_process_mu_groups() 564 !memcmp(mgmt->u.action.u.vht_group_notif.membership, in ieee80211_process_mu_groups() 569 mgmt->u.action.u.vht_group_notif.membership, in ieee80211_process_mu_groups() 572 mgmt->u.action.u.vht_group_notif.position, in ieee80211_process_mu_groups()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/os_dep/linux/ |
D | mlme_linux.c | 95 struct ieee80211_mgmt *mgmt; /**< Start address of the management frame */ member 170 bssInfo.mgmt = (struct ieee80211_mgmt*)_rtw_malloc(bssInfo.mgmtLen); in indicate_wx_scan_get_result_event() 171 _rtw_memset(bssInfo.mgmt, 0, bssInfo.mgmtLen); in indicate_wx_scan_get_result_event() 173 _rtw_memcpy(bssInfo.mgmt->bssid, pnetwork->network.MacAddress, ETH_ALEN); in indicate_wx_scan_get_result_event() 175 bssInfo.mgmt->u.probe_resp.beacon_int = pnetwork->network.Configuration.BeaconPeriod; in indicate_wx_scan_get_result_event() 179 bssInfo.mgmt->u.probe_resp.capab_info = le16_to_cpu(cap); in indicate_wx_scan_get_result_event() 181 …_rtw_memcpy(bssInfo.mgmt->u.probe_resp.variable, pnetwork->network.IEs+ie_offset, pnetwork->networ… in indicate_wx_scan_get_result_event() 188 rtw_mfree(bssInfo.mgmt, bssInfo.mgmtLen); in indicate_wx_scan_get_result_event()
|
/device/board/hihope/rk3568/wifi/bcmdhd_wifi6/hdfadapt/ |
D | hdf_bdh_event.c | 53 if (innerBssInfo->channel == NULL || netDev == NULL || innerBssInfo->mgmt == NULL) { in HdfInformBssFrameEventCallback() 61 bssInfo.mgmt = (struct Ieee80211Mgmt *)innerBssInfo->mgmt; in HdfInformBssFrameEventCallback()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/ |
D | txrx.c | 132 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in xradio_frame_monitor() local 134 u8 *action = (u8 *) &mgmt->u.action.category; in xradio_frame_monitor() 255 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; local 260 if (!mgmt || memcmp(ap_compat_bssid, mgmt->bssid, ETH_ALEN)) 263 if (ieee80211_is_probe_resp(mgmt->frame_control)) 264 ies = mgmt->u.probe_resp.variable; 265 else if (ieee80211_is_beacon(mgmt->frame_control)) 266 ies = mgmt->u.beacon.variable; 267 else if (ieee80211_is_assoc_resp(mgmt->frame_control)) 268 ies = mgmt->u.assoc_resp.variable; [all …]
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/ |
D | wal_scan.c | 124 …scanned_bss_info->mgmt->u.probe_resp.timestamp = ((hi_u64)ts.tv_sec * 1000000) /* 1000000 时间戳单位转换为… in wal_inform_bss_frame() 130 …scanned_bss_info->mgmt->bssid[0], scanned_bss_info->mgmt->bssid[4], scanned_bss_info->mgmt->bssid[… in wal_inform_bss_frame() 141 cfg80211_bss = oal_cfg80211_inform_bss_frame(wiphy, ieee80211_channel, scanned_bss_info->mgmt, in wal_inform_bss_frame() 221 … scanned_bss_info.mgmt = (oal_ieee80211_mgmt_stru *)(scanned_bss->bss_dscr_info.auc_mgmt_buff); in wal_inform_all_bss()
|
D | wal_cfg80211_apt.c | 300 … if ((wiphy == HI_NULL) || (ieee80211_channel == HI_NULL) || (scanned_bss_info->mgmt == HI_NULL)) { in cfg80211_inform_bss_frame() 302 (uintptr_t)wiphy, (uintptr_t)ieee80211_channel, (uintptr_t)(scanned_bss_info->mgmt)); in cfg80211_inform_bss_frame() 320 scan_result.beacon_int = (hi_s16)scanned_bss_info->mgmt->u.probe_resp.beacon_int; in cfg80211_inform_bss_frame() 321 scan_result.caps = (hi_s16) scanned_bss_info->mgmt->u.probe_resp.capab_info; in cfg80211_inform_bss_frame() 326 if (memcpy_s(scan_result.bssid, ETH_ADDR_LEN, scanned_bss_info->mgmt->bssid, ETH_ALEN) != EOK) { in cfg80211_inform_bss_frame() 331 …if (memcpy_s(scan_result.variable, ie_len, scanned_bss_info->mgmt->u.probe_resp.variable, ie_len) … in cfg80211_inform_bss_frame() 337 scanned_bss_info->mgmt->u.beacon.variable, beacon_len) != EOK) { in cfg80211_inform_bss_frame()
|
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/hdf/ |
D | hdf_comm.c | 280 struct ieee80211_mgmt *mgmt = NULL; in Bdh6SAction() local 323 mgmt = (struct ieee80211_mgmt *)action_buf; in Bdh6SAction() 324 mgmt->frame_control = in Bdh6SAction() 326 memcpy_s(mgmt->da, ETH_ALEN, actionData->dst, ETH_ALEN); in Bdh6SAction() 327 memcpy_s(mgmt->sa, ETH_ALEN, srcMac, ETH_ALEN); in Bdh6SAction() 328 memcpy_s(mgmt->bssid, ETH_ALEN, actionData->bssid, ETH_ALEN); in Bdh6SAction() 748 struct ieee80211_mgmt *mgmt, in HdfInformBssFrameEventCallback() argument 756 if (channel == NULL || netDev == NULL || mgmt == NULL) { in HdfInformBssFrameEventCallback() 765 bssInfo.mgmt = (struct Ieee80211Mgmt *)mgmt; in HdfInformBssFrameEventCallback()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/mesh/ |
D | rtw_mesh_hwmp.c | 469 struct rtw_ieee80211_hdr_3addr *mgmt, in rtw_hwmp_preq_frame_process() argument 588 target_sn, mgmt->addr2, 0, ttl, in rtw_hwmp_preq_frame_process() 602 target_sn, mgmt->addr2, 0, ttl, in rtw_hwmp_preq_frame_process() 652 struct rtw_ieee80211_hdr_3addr *mgmt, in rtw_hwmp_prep_frame_process() argument 734 struct rtw_ieee80211_hdr_3addr *mgmt, in rtw_hwmp_perr_frame_process() argument 745 ta = mgmt->addr2; in rtw_hwmp_perr_frame_process() 789 struct rtw_ieee80211_hdr_3addr *mgmt, in rtw_hwmp_rann_frame_process() argument 817 MAC_ARG(originator_addr), MAC_ARG(mgmt->addr2), root_is_gate); in rtw_hwmp_rann_frame_process() 820 sta = rtw_get_stainfo(pstapriv, mgmt->addr2); in rtw_hwmp_rann_frame_process() 860 MAC_ARG(mgmt->addr2), in rtw_hwmp_rann_frame_process() [all …]
|
/device/board/osware/imx8mm/drivers/wifi/ap6212/hdfadapter/ |
D | hdf_mac80211.c | 181 int16_t freq, struct ieee80211_mgmt *mgmt, uint32_t mgmtLen) in inform_bss_frame() argument 188 if (channel == NULL || netDev == NULL || mgmt == NULL) { in inform_bss_frame() 196 bssInfo.mgmt = (struct Ieee80211Mgmt *)mgmt; in inform_bss_frame() 204 bssInfo.mgmt->bssid[0], bssInfo.mgmt->bssid[1], bssInfo.mgmt->bssid[2], in inform_bss_frame() 205 bssInfo.mgmt->bssid[3], bssInfo.mgmt->bssid[4], bssInfo.mgmt->bssid[5]); in inform_bss_frame()
|