aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath/if_ath_tx_ht.h
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2011-02-01 08:03:01 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2011-02-01 08:03:01 +0000
commit4b44f6f2750fa477f1abaa073ed5993717506bb3 (patch)
tree33e567b0391ef1263f25d77f5c4d6da68652ff04 /sys/dev/ath/if_ath_tx_ht.h
parent292c424d6e360f9c63c54b563e8937881add6b4c (diff)
downloadsrc-4b44f6f2750fa477f1abaa073ed5993717506bb3.tar.gz
src-4b44f6f2750fa477f1abaa073ed5993717506bb3.zip
Include some preliminary TX HT rate scenario setup code.
The AR5416 and later TX descriptors have new fields for supporting 11n bits (eg 20/40mhz mode, short/long GI) and enabling/disabling RTS/CTS protection per rate. These functions will be responsible for initialising the TX descriptors for the AR5416 and later chips for both HT and legacy frames. Beacon frames will remain using the non-11n TX descriptor setup for now; Linux ath9k does much the same. Note that these functions aren't yet used anywhere; a few more framework changes are needed before all of the right rate information is available for TX.
Notes
Notes: svn path=/head/; revision=218159
Diffstat (limited to 'sys/dev/ath/if_ath_tx_ht.h')
-rw-r--r--sys/dev/ath/if_ath_tx_ht.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_tx_ht.h b/sys/dev/ath/if_ath_tx_ht.h
new file mode 100644
index 000000000000..ad4b74b2cc3c
--- /dev/null
+++ b/sys/dev/ath/if_ath_tx_ht.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer,
+ * without modification.
+ * 2. Redistributions in binary form must reproduce at minimum a disclaimer
+ * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
+ * redistribution must be conditioned upon including a substantially
+ * similar Disclaimer requirement for further binary redistribution.
+ *
+ * NO WARRANTY
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
+ * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+ * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * $FreeBSD$
+ */
+#ifndef __IF_ATH_TX_HT_H__
+#define __IF_ATH_TX_HT_H__
+
+extern void ath_buf_set_rate(struct ath_softc *sc,
+ struct ieee80211_node *ni, struct ath_buf *bf,
+ int pktlen, int flags, uint8_t ctsrate, uint8_t *rix,
+ uint8_t *try);
+
+#endif