Date: Fri, 16 Nov 2012 19:40:54 -0800 From: Adrian Chadd <adrian@freebsd.org> To: freebsd-wireless@freebsd.org Subject: Fwd: svn commit: r243174 - head/sys/dev/ath/ath_hal/ar5210 Message-ID: <CAJ-Vmoma0hPaqATPAsdfbRBX52LUuh4nO9Lqk850oZHGsBxCkA@mail.gmail.com> In-Reply-To: <201211170239.qAH2dc42007560@svn.freebsd.org> References: <201211170239.qAH2dc42007560@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
For like, the two of you out there who still have an AR5210 of some sort, please try this out. This seems to work correctly and correctly populate the RTS duration field. Adrian ---------- Forwarded message ---------- From: Adrian Chadd <adrian@freebsd.org> Date: 16 November 2012 18:39 Subject: svn commit: r243174 - head/sys/dev/ath/ath_hal/ar5210 To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Author: adrian Date: Sat Nov 17 02:39:37 2012 New Revision: 243174 URL: http://svnweb.freebsd.org/changeset/base/243174 Log: Correctly populate the RTS field. Tested: * AR5210, STA mode, RTS enabled Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c Sat Nov 17 02:39:09 2012 (r243173) +++ head/sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c Sat Nov 17 02:39:37 2012 (r243174) @@ -518,7 +518,8 @@ ar5210SetupTxDesc(struct ath_hal *ah, st ads->ds_ctl1 = 0; if (flags & HAL_TXDESC_RTSENA) { ads->ds_ctl0 |= AR_RTSCTSEnable; - ads->ds_ctl1 |= rtsctsDuration & AR_RTSDuration; + ads->ds_ctl1 |= (rtsctsDuration << AR_RTSDuration_S) + & AR_RTSDuration; } return AH_TRUE; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmoma0hPaqATPAsdfbRBX52LUuh4nO9Lqk850oZHGsBxCkA>