diff --git a/core/wma/inc/wma_types.h b/core/wma/inc/wma_types.h index f340455002e6..38d6ca7b31fd 100644 --- a/core/wma/inc/wma_types.h +++ b/core/wma/inc/wma_types.h @@ -694,16 +694,32 @@ wma_ds_peek_rx_packet_info void wma_tx_abort(uint8_t vdev_id); -QDF_STATUS wma_tx_packet(void *pWMA, - void *pFrmBuf, - uint16_t frmLen, - eFrameType frmType, - eFrameTxDir txDir, - uint8_t tid, - wma_tx_dwnld_comp_callback pCompFunc, +/** + * wma_tx_packet() - Sends Tx Frame to TxRx + * @wma_context: wma context + * @tx_frame: frame buffer + * @frmLen: frame length + * @frmType: frame type + * @txDir: tx diection + * @tid: TID + * @tx_frm_download_comp_cb: tx download callback handler + * @tx_frm_ota_comp_cb: OTA complition handler + * @tx_flag: tx flag + * @vdev_id: vdev id + * @tdlsFlag: tdls flag + * + * This function sends the frame corresponding to the + * given vdev id. + * This is blocking call till the downloading of frame is complete. + * + * Return: QDF status + */ +QDF_STATUS wma_tx_packet(void *wma_context, void *tx_frame, uint16_t frmLen, + eFrameType frmType, eFrameTxDir txDir, uint8_t tid, + wma_tx_dwnld_comp_callback tx_frm_download_comp_cb, void *pData, - wma_tx_ota_comp_callback pAckTxComp, - uint8_t txFlag, uint8_t sessionId, bool tdlsflag, + wma_tx_ota_comp_callback tx_frm_ota_comp_cb, + uint8_t tx_flag, uint8_t vdev_id, bool tdlsFlag, uint16_t channel_freq, enum rateid rid); /** diff --git a/core/wma/src/wma_data.c b/core/wma/src/wma_data.c index eb506c3a6a04..7f76f145b92f 100644 --- a/core/wma/src/wma_data.c +++ b/core/wma/src/wma_data.c @@ -2350,26 +2350,6 @@ static void wma_update_tx_send_params(struct tx_send_params *tx_param, tx_param->preamble_type); } -/** - * wma_tx_packet() - Sends Tx Frame to TxRx - * @wma_context: wma context - * @tx_frame: frame buffer - * @frmLen: frame length - * @frmType: frame type - * @txDir: tx diection - * @tid: TID - * @tx_frm_download_comp_cb: tx download callback handler - * @tx_frm_ota_comp_cb: OTA complition handler - * @tx_flag: tx flag - * @vdev_id: vdev id - * @tdlsFlag: tdls flag - * - * This function sends the frame corresponding to the - * given vdev id. - * This is blocking call till the downloading of frame is complete. - * - * Return: QDF status - */ QDF_STATUS wma_tx_packet(void *wma_context, void *tx_frame, uint16_t frmLen, eFrameType frmType, eFrameTxDir txDir, uint8_t tid, wma_tx_dwnld_comp_callback tx_frm_download_comp_cb,