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;
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to