From 186275ec87e54f7c5c3e4ec75fbcb167bee25fcc Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 31 Dec 2004 20:21:31 +0000 Subject: for parts that require split keycache entries report the the index of the first entry on a mic error so we're consistent with parts that don't have split keycache --- sys/dev/ath/if_ath.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/ath/if_ath.c') diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 237fc47..a46e8c6 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -2575,7 +2575,10 @@ ath_rx_proc(void *arg, int npending) BUS_DMASYNC_POSTREAD); ieee80211_notify_michael_failure(ic, mtod(m, struct ieee80211_frame *), - ds->ds_rxstat.rs_keyix); + sc->sc_splitmic ? + ds->ds_rxstat.rs_keyix-32 : + ds->ds_rxstat.rs_keyix + ); } } ifp->if_ierrors++; -- cgit v1.1