diff options
author | Mattias Nissler <mattias.nissler@gmx.de> | 2008-03-09 17:38:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 16:02:33 -0400 |
commit | 92f5ac6320d74fbb7230626cb88141f3ec9a694c (patch) | |
tree | 140fb638e7e09e0eab777f490591057540aefe35 /drivers/net/wireless/rt2x00/rt2x00usb.c | |
parent | f855c10b6e7b0c448c35b88266f788dd3738375e (diff) |
rt2x00: Initialize TX control field in data entries
In the TX path, the driver didn't copy the TX control data structure. Thus, it
was invalid in the TX done handler, causing serious trouble and misbehaviour.
Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de>
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.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index 512ff3914813..eec91111e765 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -206,6 +206,7 @@ int rt2x00usb_write_tx_data(struct rt2x00_dev *rt2x00dev, | |||
206 | skbdesc->desc_len = queue->desc_size; | 206 | skbdesc->desc_len = queue->desc_size; |
207 | skbdesc->entry = entry; | 207 | skbdesc->entry = entry; |
208 | 208 | ||
209 | memcpy(&priv_tx->control, control, sizeof(priv_tx->control)); | ||
209 | rt2x00lib_write_tx_desc(rt2x00dev, skb, control); | 210 | rt2x00lib_write_tx_desc(rt2x00dev, skb, control); |
210 | 211 | ||
211 | /* | 212 | /* |