PERFORCE change 152625 for review

Sam Leffler sam at FreeBSD.org
Fri Nov 7 09:06:15 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=152625

Change 152625 by sam at sam_ebb on 2008/11/07 17:05:16

	skip unused rates when check for an initial rate; this fixes
	wrongly selecting an HT rate from the hal's rate table

Affected files ...

.. //depot/projects/vap/sys/dev/ath/ath_rate/sample/sample.c#20 edit

Differences ...

==== //depot/projects/vap/sys/dev/ath/ath_rate/sample/sample.c#20 (text+ko) ====

@@ -280,6 +280,8 @@
 		if (!sn->packets_sent[size_bin] || best_rix == -1) {
 			/* no packet has been sent successfully yet */
 			for (rix = rt->rateCount-1; rix > 0; rix--) {
+				if ((sn->ratemask & (1<<rix)) == 0)
+					continue;
 				/* 
 				 * pick the highest rate <= 36 Mbps
 				 * that hasn't failed.


More information about the p4-projects mailing list