summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-12-12 21:18:37 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-12-12 21:18:37 +0000
commit37f73018e241ca6f68d4e1d286034d39bd400a60 (patch)
tree5f049cc1e5340e4cf174c4385ef9c1d3c9b3b305
parent53176d33e3b1e73edece5f958e5c2c5c9c4008a3 (diff)
fix a bug that slipped through my last commit.
-rw-r--r--sys/dev/ic/rt2860.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/rt2860.c b/sys/dev/ic/rt2860.c
index a3b5042579c..854c5c6a8be 100644
--- a/sys/dev/ic/rt2860.c
+++ b/sys/dev/ic/rt2860.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2860.c,v 1.21 2008/12/12 20:58:48 damien Exp $ */
+/* $OpenBSD: rt2860.c,v 1.22 2008/12/12 21:18:36 damien Exp $ */
/*-
* Copyright (c) 2007, 2008
@@ -1029,7 +1029,7 @@ rt2860_drain_stats_fifo(struct rt2860_softc *sc)
* that it works only because we do not allow rate
* fallback from OFDM to CCK.
*/
- mcs = (stat >> RT2860_TXQ_MCS_SHIFT) & 0xffff;
+ mcs = (stat >> RT2860_TXQ_MCS_SHIFT) & 0x7f;
pid = (stat >> RT2860_TXQ_PID_SHIFT) & 0xf;
if (mcs + 1 != pid)
amn->amn_retrycnt++;