Merge tag 'sunxi-dt-for-3.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git] / drivers / staging / rtl8723au / hal / rtl8723a_xmit.c
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  ******************************************************************************/
15 #define _RTL8723A_XMIT_C_
16
17 #include <osdep_service.h>
18 #include <drv_types.h>
19 #include <rtl8723a_hal.h>
20
21 void handle_txrpt_ccx_8723a(struct rtw_adapter *adapter, void *buf)
22 {
23         struct txrpt_ccx_8723a *txrpt_ccx = buf;
24
25         if (txrpt_ccx->int_ccx) {
26                 if (txrpt_ccx->pkt_ok)
27                         rtw_ack_tx_done23a(&adapter->xmitpriv, RTW_SCTX_DONE_SUCCESS);
28                 else
29                         rtw_ack_tx_done23a(&adapter->xmitpriv, RTW_SCTX_DONE_CCX_PKT_FAIL);
30         }
31 }