Commit 95db4d4d authored by Mattias Nissler's avatar Mattias Nissler Committed by John W. Linville

rt2x00: Use the correct size when copying the control info in txdone

The sizeof() operator was incorrectly applied to the pointer, not the struct.
Signed-off-by: default avatarMattias Nissler <mattias.nissler@gmx.de>
Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 92f5ac63
...@@ -521,7 +521,7 @@ void rt2x00lib_txdone(struct queue_entry *entry, ...@@ -521,7 +521,7 @@ void rt2x00lib_txdone(struct queue_entry *entry,
tx_status.ack_signal = 0; tx_status.ack_signal = 0;
tx_status.excessive_retries = (txdesc->status == TX_FAIL_RETRY); tx_status.excessive_retries = (txdesc->status == TX_FAIL_RETRY);
tx_status.retry_count = txdesc->retry; tx_status.retry_count = txdesc->retry;
memcpy(&tx_status.control, txdesc->control, sizeof(txdesc->control)); memcpy(&tx_status.control, txdesc->control, sizeof(*txdesc->control));
if (!(tx_status.control.flags & IEEE80211_TXCTL_NO_ACK)) { if (!(tx_status.control.flags & IEEE80211_TXCTL_NO_ACK)) {
if (success) if (success)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment