From 5fb8c8d60cc54a79afdaab3ae997fd881c009862 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Thu, 3 Mar 2011 20:41:59 +0000 Subject: [PATCH] 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. --- sys/dev/ath/ath_rate/sample/sample.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/ath/ath_rate/sample/sample.c b/sys/dev/ath/ath_rate/sample/sample.c index bf2e4ff7107d..7f8d34923eb6 100644 --- a/sys/dev/ath/ath_rate/sample/sample.c +++ b/sys/dev/ath/ath_rate/sample/sample.c @@ -273,6 +273,7 @@ ath_rate_findrate(struct ath_softc *sc, struct ath_node *an, 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);