From owner-svn-src-head@FreeBSD.ORG Tue Feb 1 15:26:30 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ADF11065693; Tue, 1 Feb 2011 15:26:30 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8947D8FC0A; Tue, 1 Feb 2011 15:26:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p11FQUfv076520; Tue, 1 Feb 2011 15:26:30 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p11FQUvA076518; Tue, 1 Feb 2011 15:26:30 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201102011526.p11FQUvA076518@svn.freebsd.org> From: Adrian Chadd Date: Tue, 1 Feb 2011 15:26:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218170 - head/sys/dev/ath/ath_hal/ar5416 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 15:26:30 -0000 Author: adrian Date: Tue Feb 1 15:26:30 2011 New Revision: 218170 URL: http://svn.freebsd.org/changeset/base/218170 Log: Just to be sure, make sure the MCS rates are allowed for TX. Approved by: rpaulo@ Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Tue Feb 1 14:28:50 2011 (r218169) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Tue Feb 1 15:26:30 2011 (r218170) @@ -149,8 +149,10 @@ ar5416StopTxDma(struct ath_hal *ah, u_in #define VALID_TX_RATES \ ((1<<0x0b)|(1<<0x0f)|(1<<0x0a)|(1<<0x0e)|(1<<0x09)|(1<<0x0d)|\ (1<<0x08)|(1<<0x0c)|(1<<0x1b)|(1<<0x1a)|(1<<0x1e)|(1<<0x19)|\ - (1<<0x1d)|(1<<0x18)|(1<<0x1c)) -#define isValidTxRate(_r) ((1<<(_r)) & VALID_TX_RATES) + (1<<0x1d)|(1<<0x18)|(1<<0x1c)|(1<<0x01)|(1<<0x02)|(1<<0x03)|\ + (1<<0x04)|(1<<0x05)|(1<<0x06)|(1<<0x07)|(1<<0x00)) +/* NB: accept HT rates */ +#define isValidTxRate(_r) ((1<<((_r) & 0x7f)) & VALID_TX_RATES) HAL_BOOL ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,