add rk3288 pinctrl dts code
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rtl8192du / hal / rtl8192d / rtl8192d_xmit.c
1 /******************************************************************************\r
2  *\r
3  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.\r
4  *\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
8  *\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
12  * more details.\r
13  *\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
17  *\r
18  *\r
19  ******************************************************************************/\r
20 #define _RTL8192D_XMIT_C_\r
21 \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
26 \r
27 #ifdef CONFIG_XMIT_ACK\r
28 void dump_txrpt_ccx_8192d(void *buf)\r
29 {\r
30         struct txrpt_ccx_8192d *txrpt_ccx = buf;\r
31 \r
32         DBG_871X("%s:\n"\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
38                 , __func__\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
44         );\r
45 }\r
46 \r
47 void handle_txrpt_ccx_8192d(_adapter *adapter, void *buf)\r
48 {\r
49         struct txrpt_ccx_8192d *txrpt_ccx = buf; \r
50 \r
51         #ifdef DBG_CCX\r
52         dump_txrpt_ccx_8192d(buf);\r
53         #endif\r
54 \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
58                 else\r
59                         rtw_ack_tx_done(&adapter->xmitpriv, RTW_SCTX_DONE_CCX_PKT_FAIL);\r
60         //}\r
61 }\r
62 #endif //CONFIG_XMIT_ACK\r
63 \r