Go to the documentation of this file.
26 #ifndef _RTL871X_XMIT_H_
27 #define _RTL871X_XMIT_H_
33 #ifdef CONFIG_R8712_TX_AGGR
34 #define MAX_XMITBUF_SZ (16384)
36 #define MAX_XMITBUF_SZ (2048)
39 #define NR_XMITBUFF (4)
41 #ifdef CONFIG_R8712_TX_AGGR
42 #define AGGR_NR_HIGH_BOUND (4)
43 #define AGGR_NR_LOW_BOUND (2)
46 #define XMITBUF_ALIGN_SZ 512
47 #define TX_GUARD_BAND 5
48 #define MAX_NUMBLKS (1)
51 #define WEP_IV(pattrib_iv, txpn, keyidx)\
53 pattrib_iv[0] = txpn._byte_.TSC0;\
54 pattrib_iv[1] = txpn._byte_.TSC1;\
55 pattrib_iv[2] = txpn._byte_.TSC2;\
56 pattrib_iv[3] = ((keyidx & 0x3)<<6);\
57 txpn.val = (txpn.val == 0xffffff) ? 0 : (txpn.val+1);\
62 #define TKIP_IV(pattrib_iv, txpn, keyidx)\
64 pattrib_iv[0] = txpn._byte_.TSC1;\
65 pattrib_iv[1] = (txpn._byte_.TSC1 | 0x20) & 0x7f;\
66 pattrib_iv[2] = txpn._byte_.TSC0;\
67 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
68 pattrib_iv[4] = txpn._byte_.TSC2;\
69 pattrib_iv[5] = txpn._byte_.TSC3;\
70 pattrib_iv[6] = txpn._byte_.TSC4;\
71 pattrib_iv[7] = txpn._byte_.TSC5;\
72 txpn.val = txpn.val == 0xffffffffffffULL ? 0 : \
76 #define AES_IV(pattrib_iv, txpn, keyidx)\
78 pattrib_iv[0] = txpn._byte_.TSC0;\
79 pattrib_iv[1] = txpn._byte_.TSC1;\
81 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
82 pattrib_iv[4] = txpn._byte_.TSC2;\
83 pattrib_iv[5] = txpn._byte_.TSC3;\
84 pattrib_iv[6] = txpn._byte_.TSC4;\
85 pattrib_iv[7] = txpn._byte_.TSC5;\
86 txpn.val = txpn.val == 0xffffffffffffULL ? 0 : \
134 #define WLANHDR_OFFSET 64
135 #define DATA_FRAMETAG 0x01
136 #define L2_FRAMETAG 0x02
137 #define MGNT_FRAMETAG 0x03
138 #define AMSDU_FRAMETAG 0x04
139 #define EII_FRAMETAG 0x05
140 #define IEEE8023_FRAMETAG 0x06
141 #define MP_FRAMETAG 0x07
142 #define TXAGG_FRAMETAG 0x08
260 static inline struct __queue *get_free_xmit_queue(