summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-10-18 02:43:59 +0000
committeradrian <adrian@FreeBSD.org>2011-10-18 02:43:59 +0000
commit1e651efecd190d3846022a52f240fea3372a10f7 (patch)
tree00f7200fd9dd67273a45604705d8a5e3eedef198
parent34ca38d01dfe44d824941d382c587ea8df3ec737 (diff)
downloadFreeBSD-src-1e651efecd190d3846022a52f240fea3372a10f7.zip
FreeBSD-src-1e651efecd190d3846022a52f240fea3372a10f7.tar.gz
Include opt_ah.h when compiling the driver.
There are HAL methods which are actually direct register access, rather than simply HAL calls. Because of this, these register accesses would use the non-debug path in ah_osdep.h as opt_ah.h isn't included. With this, the correct register access methods are used, so debugging traces show things such as TXDP checking and TSF32 access.
-rw-r--r--sys/dev/ath/if_ath.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 4105fd6..e1d2c0f 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -39,6 +39,11 @@ __FBSDID("$FreeBSD$");
#include "opt_inet.h"
#include "opt_ath.h"
+/*
+ * This is needed for register operations which are performed
+ * by the driver - eg, calls to ath_hal_gettsf32().
+ */
+#include "opt_ah.h"
#include "opt_wlan.h"
#include <sys/param.h>
OpenPOWER on IntegriCloud