forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
f855c10b6e
commit
92f5ac6320
@ -67,6 +67,7 @@ int rt2x00pci_write_tx_data(struct rt2x00_dev *rt2x00dev,
|
||||
skbdesc->desc_len = queue->desc_size;
|
||||
skbdesc->entry = entry;
|
||||
|
||||
memcpy(&priv_tx->control, control, sizeof(priv_tx->control));
|
||||
memcpy(priv_tx->data, skb->data, skb->len);
|
||||
rt2x00lib_write_tx_desc(rt2x00dev, skb, control);
|
||||
|
||||
|
@ -206,6 +206,7 @@ int rt2x00usb_write_tx_data(struct rt2x00_dev *rt2x00dev,
|
||||
skbdesc->desc_len = queue->desc_size;
|
||||
skbdesc->entry = entry;
|
||||
|
||||
memcpy(&priv_tx->control, control, sizeof(priv_tx->control));
|
||||
rt2x00lib_write_tx_desc(rt2x00dev, skb, control);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user