svn commit: r225711 -
user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416
Adrian Chadd
adrian at FreeBSD.org
Wed Sep 21 06:35:05 UTC 2011
Author: adrian
Date: Wed Sep 21 06:35:05 2011
New Revision: 225711
URL: http://svn.freebsd.org/changeset/base/225711
Log:
Undo an autosleep hack that I never finished porting.
I'll revisit this when it's time to do autosleep.
Modified:
user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c Wed Sep 21 03:37:12 2011 (r225710)
+++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c Wed Sep 21 06:35:05 2011 (r225711)
@@ -107,10 +107,10 @@ 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);
+ ads->ds_ctl0 = 0; /* XXX just to be sure? -adrian */
ads->ds_ctl1 = size & AR_BufLen;
if (flags & HAL_RXDESC_INTREQ)
ads->ds_ctl1 |= AR_RxIntrReq;
@@ -119,8 +119,7 @@ ar5416SetupRxDesc(struct ath_hal *ah, st
ads->ds_rxstatus8 &= ~AR_RxDone;
/* clear the rest of the status fields */
- if (! pCap->halAutoSleepSupport)
- OS_MEMZERO(&(ads->u), sizeof(ads->u));
+ OS_MEMZERO(&(ads->u), sizeof(ads->u));
return AH_TRUE;
}
More information about the svn-src-user
mailing list