From owner-svn-src-head@FreeBSD.ORG Tue Feb 1 04:39:15 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 ECD251065673; Tue, 1 Feb 2011 04:39:15 +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 DA7608FC19; Tue, 1 Feb 2011 04:39:15 +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 p114dFGv058064; Tue, 1 Feb 2011 04:39:15 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p114dFCu058062; Tue, 1 Feb 2011 04:39:15 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201102010439.p114dFCu058062@svn.freebsd.org> From: Adrian Chadd Date: Tue, 1 Feb 2011 04:39:15 +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: r218151 - head/sys/dev/ath 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 04:39:16 -0000 Author: adrian Date: Tue Feb 1 04:39:15 2011 New Revision: 218151 URL: http://svn.freebsd.org/changeset/base/218151 Log: Add TX/RX chainmask info to if_ath - this is needed for the 11n TX rate series. Modified: head/sys/dev/ath/if_athvar.h Modified: head/sys/dev/ath/if_athvar.h ============================================================================== --- head/sys/dev/ath/if_athvar.h Tue Feb 1 03:51:35 2011 (r218150) +++ head/sys/dev/ath/if_athvar.h Tue Feb 1 04:39:15 2011 (r218151) @@ -346,6 +346,8 @@ struct ath_softc { u_int32_t sc_avgtsfdeltap;/* TDMA slot adjust (+) */ u_int32_t sc_avgtsfdeltam;/* TDMA slot adjust (-) */ uint16_t *sc_eepromdata; /* Local eeprom data, if AR9100 */ + int sc_txchainmask; /* currently configured TX chainmask */ + int sc_rxchainmask; /* currently configured RX chainmask */ }; #define ATH_LOCK_INIT(_sc) \ @@ -630,6 +632,10 @@ void ath_intr(void *); ath_hal_setcapability(_ah, HAL_CAP_INTMIT, 1, _v, NULL) #define ath_hal_getchannoise(_ah, _c) \ ((*(_ah)->ah_getChanNoise)((_ah), (_c))) +#define ath_hal_getrxchainmask(_ah, _prxchainmask) \ + (ath_hal_getcapability(_ah, HAL_CAP_RX_CHAINMASK, 0, _prxchainmask)) +#define ath_hal_gettxchainmask(_ah, _ptxchainmask) \ + (ath_hal_getcapability(_ah, HAL_CAP_TX_CHAINMASK, 0, _ptxchainmask)) #define ath_hal_setuprxdesc(_ah, _ds, _size, _intreq) \ ((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq)))