From owner-svn-src-head@FreeBSD.ORG Fri Jan 8 21:02:13 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0698A106566B; Fri, 8 Jan 2010 21:02:13 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EABDC8FC0C; Fri, 8 Jan 2010 21:02:12 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o08L2CQl090057; Fri, 8 Jan 2010 21:02:12 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o08L2CuZ090055; Fri, 8 Jan 2010 21:02:12 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <201001082102.o08L2CuZ090055@svn.freebsd.org> From: Edward Tomasz Napierala Date: Fri, 8 Jan 2010 21:02:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r201822 - head/sys/dev/iwn X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2010 21:02:13 -0000 Author: trasz Date: Fri Jan 8 21:02:12 2010 New Revision: 201822 URL: http://svn.freebsd.org/changeset/base/201822 Log: Fix array overflow. Reviewed by: rpaulo Modified: head/sys/dev/iwn/if_iwn.c Modified: head/sys/dev/iwn/if_iwn.c ============================================================================== --- head/sys/dev/iwn/if_iwn.c Fri Jan 8 20:40:28 2010 (r201821) +++ head/sys/dev/iwn/if_iwn.c Fri Jan 8 21:02:12 2010 (r201822) @@ -3928,7 +3928,7 @@ iwn5000_get_rssi(struct iwn_softc *sc, s DPRINTF(sc, IWN_DEBUG_RECV, "%s: agc %d rssi %d %d %d " "result %d\n", __func__, agc, - phy->rssi[0], phy->rssi[2], phy->rssi[4], + phy->rssi[0], phy->rssi[1], phy->rssi[2], rssi - agc - IWN_RSSI_TO_DBM); return rssi - agc - IWN_RSSI_TO_DBM; }