From 78eb86c35d8530b2e1b635816f6293d7edb75308 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Fri, 8 Jan 2010 21:02:12 +0000 Subject: [PATCH] Fix array overflow. Reviewed by: rpaulo --- sys/dev/iwn/if_iwn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c index 9e032f7ffd44..d756aa15bc95 100644 --- a/sys/dev/iwn/if_iwn.c +++ b/sys/dev/iwn/if_iwn.c @@ -3928,7 +3928,7 @@ iwn5000_get_rssi(struct iwn_softc *sc, struct iwn_rx_stat *stat) 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; }