管理帧发送

管理帧发送

lim_send_auth_mgmt_frame
lim_send_mgmt_frame_tx / lim_send_frame / lim_tx_mgmt_frame     //分配qdf_nbuf_t
wma_tx_packet
-1->wlan_mgmt_txrx_mgmt_frame_tx //tx_frame 管理帧描述符池 mgmt_desc_pool
-1->wma_mgmt_unified_cmd_send   //找到WMI句柄, wmi_unified_attach时分配WMI句柄struct wmi_unified
-1-2->send_mgmt_cmd_tlv  //重现分配qdf_nbuf_t buf, 把管理帧copy到本buf内部。

-1-2-3-> wmi_unified_cmd_send_fl  //HTC_PACKET *pkt 

-1-2-3-4-> __htc_send_pkt  // HTC_PACKET_QUEUE pPktQueue; 维护一个队列。


//发送线程等待tx_frm_download_comp_event


TX comp
htc_tx_completion_handler
-1->send_packet_completion /htt_h2t_send_complete
-1-2-> send_complete_part2 / ol_tx_download_done_ll
-1-2-3-> wma_mgmt_tx_dload_comp_hldr
-1-2-3-4->lim_auth_tx_complete_cnf

typedef struct sSirMacFrameCtl {
wma_tx_packet 处理

 

/* CE_PCI TABLE */
/*
* NOTE: the table below is out of date, though still a useful reference.
* Refer to target_service_to_ce_map and hif_map_service_to_pipe for the actual
* mapping of HTC services to HIF pipes.
*/
/*
* This authoritative table defines Copy Engine configuration and the mapping
* of services/endpoints to CEs. A subset of this information is passed to
* the Target during startup as a prerequisite to entering BMI phase.
* See:
* target_service_to_ce_map - Target-side mapping
* hif_map_service_to_pipe - Host-side mapping
* target_ce_config - Target-side configuration
* host_ce_config - Host-side configuration
============================================================================
Purpose | Service / Endpoint | CE | Dire | Xfer | Xfer
| | | ctio | Size | Frequency
| | | n | |
============================================================================
tx | HTT_DATA (downlink) | CE 0 | h->t | medium - | very frequent
descriptor | | | | O(100B) | and regular
download | | | | |
----------------------------------------------------------------------------
rx | HTT_DATA (uplink) | CE 1 | t->h | small - | frequent and
indication | | | | O(10B) | regular
upload | | | | |
----------------------------------------------------------------------------
MSDU | DATA_BK (uplink) | CE 2 | t->h | large - | rare
upload | | | | O(1000B) | (frequent
e.g. noise | | | | | during IP1.0
packets | | | | | testing)
----------------------------------------------------------------------------
MSDU | DATA_BK (downlink) | CE 3 | h->t | large - | very rare
download | | | | O(1000B) | (frequent
e.g. | | | | | during IP1.0
misdirecte | | | | | testing)
d EAPOL | | | | |
packets | | | | |
----------------------------------------------------------------------------
n/a | DATA_BE, DATA_VI | CE 2 | t->h | | never(?)
| DATA_VO (uplink) | | | |
----------------------------------------------------------------------------
n/a | DATA_BE, DATA_VI | CE 3 | h->t | | never(?)
| DATA_VO (downlink) | | | |
----------------------------------------------------------------------------
WMI events | WMI_CONTROL (uplink) | CE 4 | t->h | medium - | infrequent
| | | | O(100B) |
----------------------------------------------------------------------------
WMI | WMI_CONTROL | CE 5 | h->t | medium - | infrequent
messages | (downlink) | | | O(100B) |
| | | | |
----------------------------------------------------------------------------
n/a | HTC_CTRL_RSVD, | CE 1 | t->h | | never(?)
| HTC_RAW_STREAMS | | | |
| (uplink) | | | |
----------------------------------------------------------------------------
n/a | HTC_CTRL_RSVD, | CE 0 | h->t | | never(?)
| HTC_RAW_STREAMS | | | |
| (downlink) | | | |
----------------------------------------------------------------------------
diag | none (raw CE) | CE 7 | t<>h | 4 | Diag Window
| | | | | infrequent
============================================================================
*/

posted on 2023-08-16 14:23  huangguanyuan  阅读(64)  评论(0编辑  收藏  举报

导航