1 /******************************************************************************
\r
3 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
\r
5 * This program is free software; you can redistribute it and/or modify it
\r
6 * under the terms of version 2 of the GNU General Public License as
\r
7 * published by the Free Software Foundation.
\r
9 * This program is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
14 * You should have received a copy of the GNU General Public License along with
\r
15 * this program; if not, write to the Free Software Foundation, Inc.,
\r
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
\r
19 ******************************************************************************/
\r
20 #define _RTL8192D_XMIT_C_
\r
22 #include <drv_conf.h>
\r
23 #include <osdep_service.h>
\r
24 #include <drv_types.h>
\r
25 #include <rtl8192d_hal.h>
\r
27 #ifdef CONFIG_XMIT_ACK
\r
28 void dump_txrpt_ccx_8192d(void *buf)
\r
30 struct txrpt_ccx_8192d *txrpt_ccx = buf;
\r
33 "retry_cnt:%u, rsvd_0:%u, rts_retry_cnt:%u, rsvd_1:%u\n"
\r
34 "ccx_qtime:%u, missed_pkt_num:%u, rsvd_4:%u\n"
\r
35 "mac_id:%u, des1_fragssn:%u\n"
\r
36 "rpt_pkt_num:%u, pkt_drop:%u, lifetime_over:%u, retry_over:%u\n"
\r
37 "edca_tx_queue:%u, rsvd_7:%u, bmc:%u, pkt_ok:%u, init_ccx:%u\n"
\r
39 , txrpt_ccx->retry_cnt, txrpt_ccx->rsvd_0, txrpt_ccx->rts_retry_cnt, txrpt_ccx->rsvd_1
\r
40 , txrpt_ccx_qtime_8192d(txrpt_ccx), txrpt_ccx->missed_pkt_num, txrpt_ccx->rsvd_4
\r
41 , txrpt_ccx->mac_id, txrpt_ccx->des1_fragssn
\r
42 , txrpt_ccx->rpt_pkt_num, txrpt_ccx->pkt_drop, txrpt_ccx->lifetime_over, txrpt_ccx->retry_over
\r
43 , txrpt_ccx->edca_tx_queue, txrpt_ccx->rsvd_7, txrpt_ccx->bmc, txrpt_ccx->pkt_ok, txrpt_ccx->int_ccx
\r
47 void handle_txrpt_ccx_8192d(_adapter *adapter, void *buf)
\r
49 struct txrpt_ccx_8192d *txrpt_ccx = buf;
\r
52 dump_txrpt_ccx_8192d(buf);
\r
55 //if (txrpt_ccx->int_ccx) {
\r
56 if (txrpt_ccx->pkt_ok)
\r
57 rtw_ack_tx_done(&adapter->xmitpriv, RTW_SCTX_DONE_SUCCESS);
\r
59 rtw_ack_tx_done(&adapter->xmitpriv, RTW_SCTX_DONE_CCX_PKT_FAIL);
\r
62 #endif //CONFIG_XMIT_ACK
\r