Date: Thu, 20 Jan 2011 04:59:11 +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: r217619 - head/sys/dev/ath Message-ID: <201101200459.p0K4xBuh001255@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Thu Jan 20 04:59:11 2011 New Revision: 217619 URL: http://svn.freebsd.org/changeset/base/217619 Log: Use the now-exposed diag code, rather than a hard-coded magic number. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Thu Jan 20 04:57:26 2011 (r217618) +++ head/sys/dev/ath/if_ath.c Thu Jan 20 04:59:11 2011 (r217619) @@ -1461,7 +1461,7 @@ ath_hal_gethangstate(struct ath_hal *ah, uint32_t rsize; void *sp; - if (!ath_hal_getdiagstate(ah, 32, &mask, sizeof(mask), &sp, &rsize)) + if (!ath_hal_getdiagstate(ah, HAL_DIAG_CHECK_HANGS, &mask, sizeof(mask), &sp, &rsize)) return 0; KASSERT(rsize == sizeof(uint32_t), ("resultsize %u", rsize)); *hangs = *(uint32_t *)sp;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101200459.p0K4xBuh001255>