From 8dffa2cdf777bbabc02bdf19ca84644fafcbf19f Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Sat, 28 Jan 2012 12:45:49 +0000 Subject: Fix ar5k_rt_copy() to copy all fields of the HAL_RATE_TABLE struct. ok mikeb deraadt --- sys/dev/ic/ar5xxx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/ic/ar5xxx.c') 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 @@ -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)); } -- cgit v1.2.3