Author: adrian
Date: Tue Oct 18 02:43:59 2011
New Revision: 226486
URL: http://svn.freebsd.org/changeset/base/226486

Log:
  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.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c   Tue Oct 18 01:56:43 2011        (r226485)
+++ head/sys/dev/ath/if_ath.c   Tue Oct 18 02:43:59 2011        (r226486)
@@ -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>
_______________________________________________
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