Date: Tue, 25 Jan 2011 05:47:50 +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: r217813 - head/sys/dev/ath/ath_hal/ar5416 Message-ID: <201101250547.p0P5loAC019013@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Tue Jan 25 05:47:50 2011 New Revision: 217813 URL: http://svn.freebsd.org/changeset/base/217813 Log: Bring over a fix from ath9k - zero some of the TX descriptors for Kite/AR9285. Kite doesn't have per-chain control (it has one chain) or antenna control; so don't try to set those descriptor entries. 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 Jan 25 05:41:36 2011 (r217812) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Tue Jan 25 05:47:50 2011 (r217813) @@ -230,6 +230,13 @@ ar5416SetupTxDesc(struct ath_hal *ah, st ads->ds_ctl2 |= SM(rtsctsDuration, AR_BurstDur); ads->ds_ctl7 |= (rtsctsRate << AR_RTSCTSRate_S); } + + if (AR_SREV_KITE(ah)) { + ads->ds_ctl8 = 0; + ads->ds_ctl9 = 0; + ads->ds_ctl10 = 0; + ads->ds_ctl11 = 0; + } return AH_TRUE; #undef RTSCTS } @@ -417,6 +424,13 @@ ar5416SetupFirstTxDesc(struct ath_hal *a | (flags & HAL_TXDESC_RTSENA ? AR_RTSEnable : 0); ads->ds_ctl2 |= SM(rtsctsDuration, AR_BurstDur); } + + if (AR_SREV_KITE(ah)) { + ads->ds_ctl8 = 0; + ads->ds_ctl9 = 0; + ads->ds_ctl10 = 0; + ads->ds_ctl11 = 0; + } return AH_TRUE; #undef RTSCTS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101250547.p0P5loAC019013>