From owner-svn-src-all@FreeBSD.ORG Tue Nov 8 01:35:05 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 979E6106564A; Tue, 8 Nov 2011 01:35:05 +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 87B0B8FC12; Tue, 8 Nov 2011 01:35:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA81Z5BZ006179; Tue, 8 Nov 2011 01:35:05 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA81Z54F006177; Tue, 8 Nov 2011 01:35:05 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201111080135.pA81Z54F006177@svn.freebsd.org> From: Adrian Chadd Date: Tue, 8 Nov 2011 01:35:05 +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: r227326 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2011 01:35:05 -0000 Author: adrian Date: Tue Nov 8 01:35:05 2011 New Revision: 227326 URL: http://svn.freebsd.org/changeset/base/227326 Log: Merge in ath rate flags and ath_rc_series from my 11n TX branch. This is in preparation for 802.11n TX aggregation support. Modified: head/sys/dev/ath/if_athrate.h Modified: head/sys/dev/ath/if_athrate.h ============================================================================== --- head/sys/dev/ath/if_athrate.h Mon Nov 7 23:09:18 2011 (r227325) +++ head/sys/dev/ath/if_athrate.h Tue Nov 8 01:35:05 2011 (r227326) @@ -77,6 +77,21 @@ struct ath_ratectrl { struct ath_ratectrl *ath_rate_attach(struct ath_softc *); void ath_rate_detach(struct ath_ratectrl *); +#define ATH_RC_NUM 4 + +#define ATH_RC_DS_FLAG 0x01 /* dual-stream rate */ +#define ATH_RC_CW40_FLAG 0x02 /* use HT40 */ +#define ATH_RC_SGI_FLAG 0x04 /* use short-GI */ +#define ATH_RC_HT_FLAG 0x08 /* use HT */ +#define ATH_RC_RTSCTS_FLAG 0x10 /* enable RTS/CTS protection */ + +struct ath_rc_series { + uint8_t rix; /* ratetable index, not rate code */ + uint8_t ratecode; /* hardware rate code */ + uint8_t tries; + uint8_t flags; + uint32_t max4msframelen; +}; /* * State storage handling.