From owner-cvs-src-old@FreeBSD.ORG Tue Feb 22 00:38:08 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9068106566C for ; Tue, 22 Feb 2011 00:38:08 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BB7FC8FC14 for ; Tue, 22 Feb 2011 00:38:08 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p1M0c8bg030376 for ; Tue, 22 Feb 2011 00:38:08 GMT (envelope-from adrian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p1M0c8w1030375 for cvs-src-old@freebsd.org; Tue, 22 Feb 2011 00:38:08 GMT (envelope-from adrian@repoman.freebsd.org) Message-Id: <201102220038.p1M0c8w1030375@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to adrian@repoman.freebsd.org using -f From: Adrian Chadd Date: Tue, 22 Feb 2011 00:37:53 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ath if_ath_tx.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 00:38:09 -0000 adrian 2011-02-22 00:37:53 UTC FreeBSD src repository Modified files: sys/dev/ath if_ath_tx.c Log: SVN rev 218932 on 2011-02-22 00:37:53Z by adrian Shuffle around the RTS/CTS rate/duration logic. * Turn ath_tx_calc_ctsduration() into a function that returns the ctsduration, or -1 for HT rates; * add a printf() to ath_tx_calc_ctsduration() which will be very loud if somehow that function is called with an MCS rate; * Add ath_tx_get_rtscts_rate() which returns the RTS/CTS rate to use for the given data rate, incl. the short preamble flag; * Only call ath_tx_calc_ctsduration() for non-11n chipsets; 11n chipsets don't require the rtscts duration to be calculated. Revision Changes Path 1.6 +52 -17 src/sys/dev/ath/if_ath_tx.c