Date: Tue, 31 May 2016 16:07:15 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301042 - head/sys/dev/ath/ath_hal/ar5416 Message-ID: <201605311607.u4VG7FTc084795@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Tue May 31 16:07:15 2016 New Revision: 301042 URL: https://svnweb.freebsd.org/changeset/base/301042 Log: [ath_hal] add support for setting the azimuth timestamp in the outgoing TX payload. FYI: This is an unsupported/deprecated feature of the 11n hardware. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Tue May 31 16:05:54 2016 (r301041) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Tue May 31 16:07:15 2016 (r301042) @@ -352,6 +352,7 @@ ar5416SetupTxDesc(struct ath_hal *ah, st /* * 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, st ; 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, s 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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605311607.u4VG7FTc084795>