svn commit: r220259 - head/sys/dev/ath/ath_hal/ar5416
Adrian Chadd
adrian at FreeBSD.org
Sat Apr 2 00:27:22 UTC 2011
Author: adrian
Date: Sat Apr 2 00:27:22 2011
New Revision: 220259
URL: http://svn.freebsd.org/changeset/base/220259
Log:
From ath9k - clear the RX descriptor status before recycling it.
Modified:
head/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c Sat Apr 2 00:24:13 2011 (r220258)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c Sat Apr 2 00:27:22 2011 (r220259)
@@ -67,6 +67,7 @@ ar5416SetupRxDesc(struct ath_hal *ah, st
uint32_t size, u_int flags)
{
struct ar5416_desc *ads = AR5416DESC(ds);
+ HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps;
HALASSERT((size &~ AR_BufLen) == 0);
@@ -77,6 +78,10 @@ ar5416SetupRxDesc(struct ath_hal *ah, st
/* this should be enough */
ads->ds_rxstatus8 &= ~AR_RxDone;
+ /* clear the rest of the status fields */
+ if (! pCap->halAutoSleepSupport)
+ OS_MEMZERO(&(ads->u), sizeof(ads->u));
+
return AH_TRUE;
}
More information about the svn-src-all
mailing list