Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2009 20:54:08 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191019 - head/sys/dev/ath/ath_rate/sample
Message-ID:  <200904132054.n3DKs8hm083214@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Mon Apr 13 20:54:08 2009
New Revision: 191019
URL: http://svn.freebsd.org/changeset/base/191019

Log:
  add a debug msg for when a fixed transmit rate is not applied because
  it's not found in the sta's negotiated rate set

Modified:
  head/sys/dev/ath/ath_rate/sample/sample.c

Modified: head/sys/dev/ath/ath_rate/sample/sample.c
==============================================================================
--- head/sys/dev/ath/ath_rate/sample/sample.c	Mon Apr 13 20:53:12 2009	(r191018)
+++ head/sys/dev/ath/ath_rate/sample/sample.c	Mon Apr 13 20:54:08 2009	(r191019)
@@ -766,6 +766,15 @@ ath_rate_ctl_reset(struct ath_softc *sc,
 				sn->static_rix = sc->sc_rixmap[tp->ucastrate];
 				break;
 			}
+#ifdef IEEE80211_DEBUG
+			if (sn->static_rix == -1) {
+				IEEE80211_NOTE(ni->ni_vap,
+				    IEEE80211_MSG_RATECTL, ni,
+				    "%s: ucastrate %u not found, nrates %u",
+				    __func__, tp->ucastrate,
+				    ni->ni_rates.rs_nrates);
+			}
+#endif
 	}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904132054.n3DKs8hm083214>