From 5e86169a67f829cbca6889847a3c9b914781f4d0 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 13 Apr 2009 20:54:08 +0000 Subject: [PATCH] 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 --- sys/dev/ath/ath_rate/sample/sample.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/dev/ath/ath_rate/sample/sample.c b/sys/dev/ath/ath_rate/sample/sample.c index b51b45f421b7..abdab6a397da 100644 --- a/sys/dev/ath/ath_rate/sample/sample.c +++ b/sys/dev/ath/ath_rate/sample/sample.c @@ -766,6 +766,15 @@ ath_rate_ctl_reset(struct ath_softc *sc, struct ieee80211_node *ni) 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 } /*