Date: Fri, 7 Nov 2008 17:06:14 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 152625 for review Message-ID: <200811071706.mA7H6Em2007730@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152625 Change 152625 by sam@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811071706.mA7H6Em2007730>