diff options
author | sam <sam@FreeBSD.org> | 2009-04-13 20:54:08 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-04-13 20:54:08 +0000 |
commit | 6f0505b051554866372f3c32c45395bbbd737773 (patch) | |
tree | 617741004177a2c3be65171a8ff19fbfdc5d9551 /sys/dev/ath | |
parent | 6d34de197a64fc9b189a81431e3d4ed203325022 (diff) | |
download | FreeBSD-src-6f0505b051554866372f3c32c45395bbbd737773.zip FreeBSD-src-6f0505b051554866372f3c32c45395bbbd737773.tar.gz |
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
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/ath_rate/sample/sample.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_rate/sample/sample.c b/sys/dev/ath/ath_rate/sample/sample.c index b51b45f..abdab6a 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 } /* |