diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index f72b3d07a42d..df6621025f4b 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -186,6 +186,7 @@ int rt2x00usb_write_tx_data(struct rt2x00_dev *rt2x00dev, | |||
186 | struct queue_entry *entry = rt2x00queue_get_entry(queue, Q_INDEX); | 186 | struct queue_entry *entry = rt2x00queue_get_entry(queue, Q_INDEX); |
187 | struct queue_entry_priv_usb_tx *priv_tx = entry->priv_data; | 187 | struct queue_entry_priv_usb_tx *priv_tx = entry->priv_data; |
188 | struct skb_frame_desc *skbdesc; | 188 | struct skb_frame_desc *skbdesc; |
189 | struct txentry_desc txdesc; | ||
189 | u32 length; | 190 | u32 length; |
190 | 191 | ||
191 | if (rt2x00queue_full(queue)) | 192 | if (rt2x00queue_full(queue)) |
@@ -200,6 +201,14 @@ int rt2x00usb_write_tx_data(struct rt2x00_dev *rt2x00dev, | |||
200 | } | 201 | } |
201 | 202 | ||
202 | /* | 203 | /* |
204 | * Copy all TX descriptor information into txdesc, | ||
205 | * after that we are free to use the skb->cb array | ||
206 | * for our information. | ||
207 | */ | ||
208 | entry->skb = skb; | ||
209 | rt2x00queue_create_tx_descriptor(entry, &txdesc, control); | ||
210 | |||
211 | /* | ||
203 | * Add the descriptor in front of the skb. | 212 | * Add the descriptor in front of the skb. |
204 | */ | 213 | */ |
205 | skb_push(skb, queue->desc_size); | 214 | skb_push(skb, queue->desc_size); |
@@ -216,7 +225,7 @@ int rt2x00usb_write_tx_data(struct rt2x00_dev *rt2x00dev, | |||
216 | skbdesc->entry = entry; | 225 | skbdesc->entry = entry; |
217 | 226 | ||
218 | memcpy(&priv_tx->control, control, sizeof(priv_tx->control)); | 227 | memcpy(&priv_tx->control, control, sizeof(priv_tx->control)); |
219 | rt2x00lib_write_tx_desc(rt2x00dev, skb, control); | 228 | rt2x00queue_write_tx_descriptor(entry, &txdesc); |
220 | 229 | ||
221 | /* | 230 | /* |
222 | * USB devices cannot blindly pass the skb->len as the | 231 | * USB devices cannot blindly pass the skb->len as the |