diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-02-03 11:32:00 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:56:13 -0500 |
commit | 00ea99e1d86b05e7ba90d66673b536b731af87cd (patch) | |
tree | fe903abefeb16778697e48062a4321cee42b0c99 /drivers/net/wireless/iwlegacy/common.h | |
parent | 89ef1ed2d241d3dfe884055d8446a5dd94919e54 (diff) |
iwlegacy: remove struct il_tx_info
It's just wrapper to sk_buff pointers ...
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/common.h')
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index 21ed70a7f68c..527a1b9f99ea 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -143,11 +143,6 @@ struct il_queue { | |||
143 | * space less than this */ | 143 | * space less than this */ |
144 | }; | 144 | }; |
145 | 145 | ||
146 | /* One for each TFD */ | ||
147 | struct il_tx_info { | ||
148 | struct sk_buff *skb; | ||
149 | }; | ||
150 | |||
151 | /** | 146 | /** |
152 | * struct il_tx_queue - Tx Queue for DMA | 147 | * struct il_tx_queue - Tx Queue for DMA |
153 | * @q: generic Rx/Tx queue descriptor | 148 | * @q: generic Rx/Tx queue descriptor |
@@ -155,7 +150,7 @@ struct il_tx_info { | |||
155 | * @cmd: array of command/TX buffer pointers | 150 | * @cmd: array of command/TX buffer pointers |
156 | * @meta: array of meta data for each command/tx buffer | 151 | * @meta: array of meta data for each command/tx buffer |
157 | * @dma_addr_cmd: physical address of cmd/tx buffer array | 152 | * @dma_addr_cmd: physical address of cmd/tx buffer array |
158 | * @txb: array of per-TFD driver data | 153 | * @skbs: array of per-TFD socket buffer pointers |
159 | * @time_stamp: time (in jiffies) of last read_ptr change | 154 | * @time_stamp: time (in jiffies) of last read_ptr change |
160 | * @need_update: indicates need to update read/write idx | 155 | * @need_update: indicates need to update read/write idx |
161 | * @sched_retry: indicates queue is high-throughput aggregation (HT AGG) enabled | 156 | * @sched_retry: indicates queue is high-throughput aggregation (HT AGG) enabled |
@@ -171,7 +166,7 @@ struct il_tx_queue { | |||
171 | void *tfds; | 166 | void *tfds; |
172 | struct il_device_cmd **cmd; | 167 | struct il_device_cmd **cmd; |
173 | struct il_cmd_meta *meta; | 168 | struct il_cmd_meta *meta; |
174 | struct il_tx_info *txb; | 169 | struct sk_buff **skbs; |
175 | unsigned long time_stamp; | 170 | unsigned long time_stamp; |
176 | u8 need_update; | 171 | u8 need_update; |
177 | u8 sched_retry; | 172 | u8 sched_retry; |
@@ -1482,15 +1477,6 @@ il_txq_ctx_deactivate(struct il_priv *il, int txq_id) | |||
1482 | clear_bit(txq_id, &il->txq_ctx_active_msk); | 1477 | clear_bit(txq_id, &il->txq_ctx_active_msk); |
1483 | } | 1478 | } |
1484 | 1479 | ||
1485 | static inline struct ieee80211_hdr * | ||
1486 | il_tx_queue_get_hdr(struct il_priv *il, int txq_id, int idx) | ||
1487 | { | ||
1488 | if (il->txq[txq_id].txb[idx].skb) | ||
1489 | return (struct ieee80211_hdr *)il->txq[txq_id].txb[idx].skb-> | ||
1490 | data; | ||
1491 | return NULL; | ||
1492 | } | ||
1493 | |||
1494 | static inline int | 1480 | static inline int |
1495 | il_is_associated(struct il_priv *il) | 1481 | il_is_associated(struct il_priv *il) |
1496 | { | 1482 | { |