diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-05-10 07:46:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:47:34 -0400 |
commit | 7050ec821c52826b63835dde54ee3d71c7db4262 (patch) | |
tree | f8154413b4ed1e8ff01b6dbb1c79240dcce83dc8 /drivers/net/wireless/rt2x00/rt2x00queue.h | |
parent | 4de36fe5abe077a4c65bf0b6a309865aa043e055 (diff) |
rt2x00: Split rt2x00lib_write_tx_desc()
Split rt2x00lib_write_tx_desc() up into a TX descriptor initializor
and TX descriptor writer.
This split is required to properly allow mac80211 to move its
tx_control structure into the skb->cb array.
The rt2x00queue_create_tx_descriptor() function will read all tx control
information and convert it into a rt2x00 TX descriptor information structure.
After that function is complete, we have all information we needed from the
tx control structure and are free to start writing into the skb->cb array
for our own purposes.
rt2x00queue_write_tx_descriptor() will be in charge of really sending
the TX descriptor to the hardware and kicking the TX queue.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h index 4bde98ba3c60..c6edc52873c4 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.h +++ b/drivers/net/wireless/rt2x00/rt2x00queue.h | |||
@@ -203,6 +203,7 @@ struct txdone_entry_desc { | |||
203 | * enum txentry_desc_flags: Status flags for TX entry descriptor | 203 | * enum txentry_desc_flags: Status flags for TX entry descriptor |
204 | * | 204 | * |
205 | * @ENTRY_TXD_RTS_FRAME: This frame is a RTS frame. | 205 | * @ENTRY_TXD_RTS_FRAME: This frame is a RTS frame. |
206 | * @ENTRY_TXD_CTS_FRAME: This frame is a CTS-to-self frame. | ||
206 | * @ENTRY_TXD_OFDM_RATE: This frame is send out with an OFDM rate. | 207 | * @ENTRY_TXD_OFDM_RATE: This frame is send out with an OFDM rate. |
207 | * @ENTRY_TXD_FIRST_FRAGMENT: This is the first frame. | 208 | * @ENTRY_TXD_FIRST_FRAGMENT: This is the first frame. |
208 | * @ENTRY_TXD_MORE_FRAG: This frame is followed by another fragment. | 209 | * @ENTRY_TXD_MORE_FRAG: This frame is followed by another fragment. |
@@ -213,6 +214,7 @@ struct txdone_entry_desc { | |||
213 | */ | 214 | */ |
214 | enum txentry_desc_flags { | 215 | enum txentry_desc_flags { |
215 | ENTRY_TXD_RTS_FRAME, | 216 | ENTRY_TXD_RTS_FRAME, |
217 | ENTRY_TXD_CTS_FRAME, | ||
216 | ENTRY_TXD_OFDM_RATE, | 218 | ENTRY_TXD_OFDM_RATE, |
217 | ENTRY_TXD_FIRST_FRAGMENT, | 219 | ENTRY_TXD_FIRST_FRAGMENT, |
218 | ENTRY_TXD_MORE_FRAG, | 220 | ENTRY_TXD_MORE_FRAG, |