summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-01-20 04:59:11 +0000
committeradrian <adrian@FreeBSD.org>2011-01-20 04:59:11 +0000
commit22ae9920aa767e9938ae6d9af510ec0e85cbd7d0 (patch)
treedcb6cfc23790645c3f58d1c9857823be48251d51 /sys/dev/ath
parent82fbde24ae37774c22d3fa83f4d8cdab7012f5b4 (diff)
downloadFreeBSD-src-22ae9920aa767e9938ae6d9af510ec0e85cbd7d0.zip
FreeBSD-src-22ae9920aa767e9938ae6d9af510ec0e85cbd7d0.tar.gz
Use the now-exposed diag code, rather than a hard-coded magic number.
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/if_ath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index dfc64fc..b713424 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -1461,7 +1461,7 @@ ath_hal_gethangstate(struct ath_hal *ah, uint32_t mask, uint32_t *hangs)
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;
OpenPOWER on IntegriCloud