aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2016-05-31 16:07:15 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2016-05-31 16:07:15 +0000
commitc3d41e2e4c635d183f643f8a50e8c6fe8fb8ae08 (patch)
treec60cbbdcbf97bc754d3787437588b14d1b4d1873 /sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
parente48538dd58762c2a0d6bf485686595e91031d379 (diff)
downloadsrc-c3d41e2e4c635d183f643f8a50e8c6fe8fb8ae08.tar.gz
src-c3d41e2e4c635d183f643f8a50e8c6fe8fb8ae08.zip
Notes
Diffstat (limited to 'sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c')
-rw-r--r--sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c b/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
index 88ba2b3c0bbc..6fba3754cb89 100644
--- a/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
+++ b/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
@@ -352,6 +352,7 @@ ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
/*
* XXX For now, just assume that this isn't a HT40 frame.
+ * It'll get over-ridden by the multi-rate TX power setup.
*/
if (AH5212(ah)->ah_tpcEnabled) {
txPower = ar5416GetTxRatePower(ah, txRate0,
@@ -368,6 +369,7 @@ ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
;
ads->ds_ctl1 = (type << AR_FrameType_S)
| (flags & HAL_TXDESC_NOACK ? AR_NoAck : 0)
+ | (flags & HAL_TXDESC_HWTS ? AR_InsertTS : 0)
;
ads->ds_ctl2 = SM(txTries0, AR_XmitDataTries0)
| (flags & HAL_TXDESC_DURENA ? AR_DurUpdateEn : 0)
@@ -450,6 +452,10 @@ ar5416SetupXTxDesc(struct ath_hal *ah, struct ath_desc *ds,
return AH_TRUE;
}
+/*
+ * XXX TODO: Figure out if AR_InsertTS is required on all sub-frames
+ * of a TX descriptor.
+ */
HAL_BOOL
ar5416FillTxDesc(struct ath_hal *ah, struct ath_desc *ds,
HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList, u_int descId,