aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h63
-rw-r--r--drivers/net/wireless/ath/ath9k/common.h63
2 files changed, 63 insertions, 63 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index fbb7dec6ddeb..cc6ea4272fde 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -206,6 +206,69 @@ struct ath_txq {
206 u8 txq_tailidx; 206 u8 txq_tailidx;
207}; 207};
208 208
209struct ath_atx_ac {
210 int sched;
211 int qnum;
212 struct list_head list;
213 struct list_head tid_q;
214};
215
216struct ath_buf_state {
217 int bfs_nframes;
218 u16 bfs_al;
219 u16 bfs_frmlen;
220 int bfs_seqno;
221 int bfs_tidno;
222 int bfs_retries;
223 u8 bf_type;
224 u32 bfs_keyix;
225 enum ath9k_key_type bfs_keytype;
226};
227
228struct ath_buf {
229 struct list_head list;
230 struct ath_buf *bf_lastbf; /* last buf of this unit (a frame or
231 an aggregate) */
232 struct ath_buf *bf_next; /* next subframe in the aggregate */
233 struct sk_buff *bf_mpdu; /* enclosing frame structure */
234 void *bf_desc; /* virtual addr of desc */
235 dma_addr_t bf_daddr; /* physical addr of desc */
236 dma_addr_t bf_buf_addr; /* physical addr of data buffer */
237 bool bf_stale;
238 bool bf_isnullfunc;
239 bool bf_tx_aborted;
240 u16 bf_flags;
241 struct ath_buf_state bf_state;
242 dma_addr_t bf_dmacontext;
243 struct ath_wiphy *aphy;
244};
245
246struct ath_atx_tid {
247 struct list_head list;
248 struct list_head buf_q;
249 struct ath_node *an;
250 struct ath_atx_ac *ac;
251 struct ath_buf *tx_buf[ATH_TID_MAX_BUFS];
252 u16 seq_start;
253 u16 seq_next;
254 u16 baw_size;
255 int tidno;
256 int baw_head; /* first un-acked tx buffer */
257 int baw_tail; /* next unused tx buffer slot */
258 int sched;
259 int paused;
260 u8 state;
261};
262
263struct ath_node {
264 struct ath_common *common;
265 struct ath_atx_tid tid[WME_NUM_TID];
266 struct ath_atx_ac ac[WME_NUM_AC];
267 u16 maxampdu;
268 u8 mpdudensity;
269 int last_rssi;
270};
271
209#define AGGR_CLEANUP BIT(1) 272#define AGGR_CLEANUP BIT(1)
210#define AGGR_ADDBA_COMPLETE BIT(2) 273#define AGGR_ADDBA_COMPLETE BIT(2)
211#define AGGR_ADDBA_PROGRESS BIT(3) 274#define AGGR_ADDBA_PROGRESS BIT(3)
diff --git a/drivers/net/wireless/ath/ath9k/common.h b/drivers/net/wireless/ath/ath9k/common.h
index 1e6f36027ee8..283cca84832c 100644
--- a/drivers/net/wireless/ath/ath9k/common.h
+++ b/drivers/net/wireless/ath/ath9k/common.h
@@ -52,69 +52,6 @@
52#define ATH_EP_RND(x, mul) \ 52#define ATH_EP_RND(x, mul) \
53 ((((x)%(mul)) >= ((mul)/2)) ? ((x) + ((mul) - 1)) / (mul) : (x)/(mul)) 53 ((((x)%(mul)) >= ((mul)/2)) ? ((x) + ((mul) - 1)) / (mul) : (x)/(mul))
54 54
55struct ath_atx_ac {
56 int sched;
57 int qnum;
58 struct list_head list;
59 struct list_head tid_q;
60};
61
62struct ath_buf_state {
63 int bfs_nframes;
64 u16 bfs_al;
65 u16 bfs_frmlen;
66 int bfs_seqno;
67 int bfs_tidno;
68 int bfs_retries;
69 u8 bf_type;
70 u32 bfs_keyix;
71 enum ath9k_key_type bfs_keytype;
72};
73
74struct ath_buf {
75 struct list_head list;
76 struct ath_buf *bf_lastbf; /* last buf of this unit (a frame or
77 an aggregate) */
78 struct ath_buf *bf_next; /* next subframe in the aggregate */
79 struct sk_buff *bf_mpdu; /* enclosing frame structure */
80 void *bf_desc; /* virtual addr of desc */
81 dma_addr_t bf_daddr; /* physical addr of desc */
82 dma_addr_t bf_buf_addr; /* physical addr of data buffer */
83 bool bf_stale;
84 bool bf_isnullfunc;
85 bool bf_tx_aborted;
86 u16 bf_flags;
87 struct ath_buf_state bf_state;
88 dma_addr_t bf_dmacontext;
89 struct ath_wiphy *aphy;
90};
91
92struct ath_atx_tid {
93 struct list_head list;
94 struct list_head buf_q;
95 struct ath_node *an;
96 struct ath_atx_ac *ac;
97 struct ath_buf *tx_buf[ATH_TID_MAX_BUFS];
98 u16 seq_start;
99 u16 seq_next;
100 u16 baw_size;
101 int tidno;
102 int baw_head; /* first un-acked tx buffer */
103 int baw_tail; /* next unused tx buffer slot */
104 int sched;
105 int paused;
106 u8 state;
107};
108
109struct ath_node {
110 struct ath_common *common;
111 struct ath_atx_tid tid[WME_NUM_TID];
112 struct ath_atx_ac ac[WME_NUM_AC];
113 u16 maxampdu;
114 u8 mpdudensity;
115 int last_rssi;
116};
117
118int ath9k_cmn_padpos(__le16 frame_control); 55int ath9k_cmn_padpos(__le16 frame_control);
119int ath9k_cmn_get_hw_crypto_keytype(struct sk_buff *skb); 56int ath9k_cmn_get_hw_crypto_keytype(struct sk_buff *skb);
120void ath9k_cmn_update_ichannel(struct ieee80211_hw *hw, 57void ath9k_cmn_update_ichannel(struct ieee80211_hw *hw,