This source file includes following definitions.
- handle_txrpt_ccx_88e
- _dbg_dump_tx_info
1
2
3
4
5
6
7 #define _RTL8188E_XMIT_C_
8
9 #include <osdep_service.h>
10 #include <drv_types.h>
11 #include <rtl8188e_hal.h>
12
13 void handle_txrpt_ccx_88e(struct adapter *adapter, u8 *buf)
14 {
15 struct txrpt_ccx_88e *txrpt_ccx = (struct txrpt_ccx_88e *)buf;
16
17 if (txrpt_ccx->int_ccx) {
18 if (txrpt_ccx->pkt_ok)
19 rtw_ack_tx_done(&adapter->xmitpriv,
20 RTW_SCTX_DONE_SUCCESS);
21 else
22 rtw_ack_tx_done(&adapter->xmitpriv,
23 RTW_SCTX_DONE_CCX_PKT_FAIL);
24 }
25 }
26
27 void _dbg_dump_tx_info(struct adapter *padapter, int frame_tag,
28 struct tx_desc *ptxdesc)
29 {
30 u8 dmp_txpkt;
31 bool dump_txdesc = false;
32
33 rtw_hal_get_def_var(padapter, HAL_DEF_DBG_DUMP_TXPKT, &(dmp_txpkt));
34
35 if (dmp_txpkt == 1) {
36 DBG_88E("dump tx_desc for data frame\n");
37 if ((frame_tag & 0x0f) == DATA_FRAMETAG)
38 dump_txdesc = true;
39 } else if (dmp_txpkt == 2) {
40 DBG_88E("dump tx_desc for mgnt frame\n");
41 if ((frame_tag & 0x0f) == MGNT_FRAMETAG)
42 dump_txdesc = true;
43 }
44
45 if (dump_txdesc) {
46 DBG_88E("=====================================\n");
47 DBG_88E("txdw0(0x%08x)\n", ptxdesc->txdw0);
48 DBG_88E("txdw1(0x%08x)\n", ptxdesc->txdw1);
49 DBG_88E("txdw2(0x%08x)\n", ptxdesc->txdw2);
50 DBG_88E("txdw3(0x%08x)\n", ptxdesc->txdw3);
51 DBG_88E("txdw4(0x%08x)\n", ptxdesc->txdw4);
52 DBG_88E("txdw5(0x%08x)\n", ptxdesc->txdw5);
53 DBG_88E("txdw6(0x%08x)\n", ptxdesc->txdw6);
54 DBG_88E("txdw7(0x%08x)\n", ptxdesc->txdw7);
55 DBG_88E("=====================================\n");
56 }
57 }