From 0580361389134875b9fadbfd12b7162e993545d1 Mon Sep 17 00:00:00 2001
From: Reyk Floeter <reyk@cvs.openbsd.org>
Date: Fri, 11 Nov 2005 14:11:41 +0000
Subject: more verbose error message for the "bogus xmit rate" problem

---
 sys/dev/ic/ath.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'sys/dev')

diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index 2ef9b736699..a400e8d34a7 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/*      $OpenBSD: ath.c,v 1.42 2005/09/23 20:06:50 reyk Exp $  */
+/*      $OpenBSD: ath.c,v 1.43 2005/11/11 14:11:40 reyk Exp $  */
 /*	$NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $	*/
 
 /*-
@@ -2281,8 +2281,9 @@ ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni,
 		rix = sc->sc_rixmap[ni->ni_rates.rs_rates[ni->ni_txrate] &
 		    IEEE80211_RATE_VAL];
 		if (rix == 0xff) {
-			printf("%s: bogus xmit rate 0x%x\n", ifp->if_xname,
-				ni->ni_rates.rs_rates[ni->ni_txrate]);
+			printf("%s: bogus xmit rate 0x%x (idx 0x%x)\n",
+			    ifp->if_xname, ni->ni_rates.rs_rates[ni->ni_txrate],
+			    ni->ni_txrate);
 			sc->sc_stats.ast_tx_badrate++;
 			m_freem(m0);
 			return EIO;
-- 
cgit v1.2.3