diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2012-01-28 12:45:49 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2012-01-28 12:45:49 +0000 |
commit | 8dffa2cdf777bbabc02bdf19ca84644fafcbf19f (patch) | |
tree | 507f2711de70396fc5bd70ab4c7d83422d8f7c47 /sys/dev/ic/ar5xxx.c | |
parent | a33625c12f727c45cd07d555316e77b83174b158 (diff) |
Fix ar5k_rt_copy() to copy all fields of the HAL_RATE_TABLE struct.
ok mikeb deraadt
Diffstat (limited to 'sys/dev/ic/ar5xxx.c')
-rw-r--r-- | sys/dev/ic/ar5xxx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/ar5xxx.c b/sys/dev/ic/ar5xxx.c index e8ad8d82ff8..f98043d78e5 100644 --- a/sys/dev/ic/ar5xxx.c +++ b/sys/dev/ic/ar5xxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5xxx.c,v 1.55 2009/09/23 18:03:30 damien Exp $ */ +/* $OpenBSD: ar5xxx.c,v 1.56 2012/01/28 12:45:48 stsp Exp $ */ /* * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -653,6 +653,8 @@ ar5k_rt_copy(HAL_RATE_TABLE *dst, const HAL_RATE_TABLE *src) { bzero(dst, sizeof(HAL_RATE_TABLE)); dst->rateCount = src->rateCount; + bcopy(src->rateCodeToIndex, dst->rateCodeToIndex, + sizeof(dst->rateCodeToIndex)); bcopy(src->info, dst->info, sizeof(dst->info)); } |