aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2008-09-21 00:28:54 +0000
committerSam Leffler <sam@FreeBSD.org>2008-09-21 00:28:54 +0000
commit90dce2467ef591012429358c1d86c475345d98c4 (patch)
treeeb4e2bf7dfd4b0e8a6bdcd110dc98531684f3fd0 /sys/dev/ath
parent2529884112114958b6b1f2f1b3c86d84b86c4d65 (diff)
Notes
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/if_athvar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h
index 3658fd69df8b..f4650428de92 100644
--- a/sys/dev/ath/if_athvar.h
+++ b/sys/dev/ath/if_athvar.h
@@ -505,8 +505,13 @@ void ath_intr(void *);
(ath_hal_getcapability(_ah, HAL_CAP_CIPHER, _cipher, NULL) == HAL_OK)
#define ath_hal_getregdomain(_ah, _prd) \
(ath_hal_getcapability(_ah, HAL_CAP_REG_DMN, 0, (_prd)) == HAL_OK)
+#if defined(__LP64__)
+#define ath_hal_setregdomain(_ah, _rd) \
+ (*(uint16_t *)(((uint8_t *)&(_ah)[1]) + 176) = (_rd))
+#else
#define ath_hal_setregdomain(_ah, _rd) \
(*(uint16_t *)(((uint8_t *)&(_ah)[1]) + 128) = (_rd))
+#endif
#define ath_hal_getcountrycode(_ah, _pcc) \
(*(_pcc) = (_ah)->ah_countryCode)
#define ath_hal_gettkipmic(_ah) \