svn commit: r219252 - head/sys/dev/ath/ath_rate/sample
Adrian Chadd
adrian at FreeBSD.org
Thu Mar 3 20:42:00 UTC 2011
Author: adrian
Date: Thu Mar 3 20:41:59 2011
New Revision: 219252
URL: http://svn.freebsd.org/changeset/base/219252
Log:
The sample rate module currently does the slightly wrong thing when
determining whether to use MRR or not.
It uses the 11g protection mode when calculating 11n related stuff, rather
than checking the 11n protection mode.
Furthermore, the 11n chipsets can quite happily handle multi-rate retry w/
protection; the TX path and rate control modules need to be taught about
that.
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 Thu Mar 3 20:14:00 2011 (r219251)
+++ head/sys/dev/ath/ath_rate/sample/sample.c Thu Mar 3 20:41:59 2011 (r219252)
@@ -273,6 +273,7 @@ ath_rate_findrate(struct ath_softc *sc,
goto done;
}
+ /* XXX TODO: this doesn't know about 11gn vs 11g protection; teach it */
mrr = sc->sc_mrretry && !(ic->ic_flags & IEEE80211_F_USEPROT);
best_rix = pick_best_rate(sn, rt, size_bin, !mrr);
More information about the svn-src-head
mailing list