svn commit: r227326 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Tue Nov 8 01:35:05 UTC 2011
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.
More information about the svn-src-all
mailing list