diff options
author | Mattias Nissler <mattias.nissler@gmx.de> | 2008-03-09 17:39:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 16:02:34 -0400 |
commit | 95db4d4d5f00cc9b2aa703a05a70902776d8c2f2 (patch) | |
tree | 74a4e6eab0918c1c0cf6b48cf7214a7768a9c709 /drivers/net/wireless/rt2x00 | |
parent | 92f5ac6320d74fbb7230626cb88141f3ec9a694c (diff) |
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: 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')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index b3a639aa0540..141b9b8a1997 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -521,7 +521,7 @@ void rt2x00lib_txdone(struct queue_entry *entry, | |||
521 | tx_status.ack_signal = 0; | 521 | tx_status.ack_signal = 0; |
522 | tx_status.excessive_retries = (txdesc->status == TX_FAIL_RETRY); | 522 | tx_status.excessive_retries = (txdesc->status == TX_FAIL_RETRY); |
523 | tx_status.retry_count = txdesc->retry; | 523 | tx_status.retry_count = txdesc->retry; |
524 | memcpy(&tx_status.control, txdesc->control, sizeof(txdesc->control)); | 524 | memcpy(&tx_status.control, txdesc->control, sizeof(*txdesc->control)); |
525 | 525 | ||
526 | if (!(tx_status.control.flags & IEEE80211_TXCTL_NO_ACK)) { | 526 | if (!(tx_status.control.flags & IEEE80211_TXCTL_NO_ACK)) { |
527 | if (success) | 527 | if (success) |