summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2560.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/rt2560.c')
-rw-r--r--sys/dev/ic/rt2560.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c
index 68e84da2101..a9c73b084ae 100644
--- a/sys/dev/ic/rt2560.c
+++ b/sys/dev/ic/rt2560.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2560.c,v 1.31 2007/01/24 17:56:24 damien Exp $ */
+/* $OpenBSD: rt2560.c,v 1.32 2007/03/08 21:58:27 deraadt Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -1730,6 +1730,8 @@ rt2560_tx_data(struct rt2560_softc *sc, struct mbuf *m0,
rs_rates[ic->ic_fixed_rate];
} else
rate = ni->ni_rates.rs_rates[ni->ni_txrate];
+ if (rate == 0)
+ rate = 2; /* XXX should not happen */
rate &= IEEE80211_RATE_VAL;
/*