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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c
index 547e71047aa..3f7b843e45b 100644
--- a/sys/dev/ic/rt2560.c
+++ b/sys/dev/ic/rt2560.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2560.c,v 1.11 2006/02/18 09:41:41 damien Exp $ */
+/* $OpenBSD: rt2560.c,v 1.12 2006/02/25 13:02:10 damien Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -1877,9 +1877,8 @@ rt2560_tx_data(struct rt2560_softc *sc, struct mbuf *m0,
rate = rs->rs_rates[ni->ni_txrate];
}
rate &= IEEE80211_RATE_VAL;
-
- /* assert tx rate is non-null so we don't end up dividing by zero */
- KASSERT(rate != 0);
+ if (rate == 0)
+ rate = 2; /* fallback to 1Mbps; should not happen */
if (ic->ic_flags & IEEE80211_F_WEPON) {
m0 = ieee80211_wep_crypt(ifp, m0, 1);