diff options
author | Ivo van Doorn <IvDoorn@gmail.com> | 2008-06-06 16:50:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:17:56 -0400 |
commit | 6db3786aee36b32e5ed072ed67fad6d5341b0991 (patch) | |
tree | af6ef8406b539e418f2cbc74609e50faa28a4ee1 /drivers/net/wireless/rt2x00/rt2x00usb.h | |
parent | f019d51410a9b61278eeff811a1ca11d2a905241 (diff) |
rt2x00: Move generic TX frame writing code into rt2x00queue
The write_tx_data functions in rt2x00pci and rt2x00usb have
a lot in common. This moves that duplicate code into
rt2x00queue_write_tx_frame().
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/rt2x00usb.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.h b/drivers/net/wireless/rt2x00/rt2x00usb.h index 460d32c444d1..b1187c812e7f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.h +++ b/drivers/net/wireless/rt2x00/rt2x00usb.h | |||
@@ -212,11 +212,14 @@ static inline int rt2x00usb_eeprom_read(struct rt2x00_dev *rt2x00dev, | |||
212 | */ | 212 | */ |
213 | void rt2x00usb_disable_radio(struct rt2x00_dev *rt2x00dev); | 213 | void rt2x00usb_disable_radio(struct rt2x00_dev *rt2x00dev); |
214 | 214 | ||
215 | /* | 215 | /** |
216 | * TX data handlers. | 216 | * rt2x00usb_write_tx_data - Initialize URB for TX operation |
217 | * @entry: The entry where the frame is located | ||
218 | * | ||
219 | * This function will initialize the URB and skb descriptor | ||
220 | * to prepare the entry for the actual TX operation. | ||
217 | */ | 221 | */ |
218 | int rt2x00usb_write_tx_data(struct rt2x00_dev *rt2x00dev, | 222 | int rt2x00usb_write_tx_data(struct queue_entry *entry); |
219 | struct data_queue *queue, struct sk_buff *skb); | ||
220 | 223 | ||
221 | /** | 224 | /** |
222 | * struct queue_entry_priv_usb: Per entry USB specific information | 225 | * struct queue_entry_priv_usb: Per entry USB specific information |