summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-12-31 20:21:31 +0000
committersam <sam@FreeBSD.org>2004-12-31 20:21:31 +0000
commit186275ec87e54f7c5c3e4ec75fbcb167bee25fcc (patch)
tree24512472d4105349841f1ca0eac8f6af79823825 /sys/dev
parent498543a7bd20888a494899a50449a15925d2ceab (diff)
downloadFreeBSD-src-186275ec87e54f7c5c3e4ec75fbcb167bee25fcc.zip
FreeBSD-src-186275ec87e54f7c5c3e4ec75fbcb167bee25fcc.tar.gz
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
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath.c5
1 files changed, 4 insertions, 1 deletions
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++;
OpenPOWER on IntegriCloud