summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2008-09-09 16:21:25 +0000
committerrpaulo <rpaulo@FreeBSD.org>2008-09-09 16:21:25 +0000
commitb96d99dacd01873601f7113ed545e1272d1cfa82 (patch)
tree29a789d77e19b208da4171262435767575793b87
parent817c519713d426e0159692b3c5ffa2d36325a5ad (diff)
downloadFreeBSD-src-b96d99dacd01873601f7113ed545e1272d1cfa82.zip
FreeBSD-src-b96d99dacd01873601f7113ed545e1272d1cfa82.tar.gz
Update for new HAL.
Reviewed by: sam
-rw-r--r--sys/dev/ath/if_athvar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h
index 242ac41..3658fd6 100644
--- a/sys/dev/ath/if_athvar.h
+++ b/sys/dev/ath/if_athvar.h
@@ -506,7 +506,7 @@ void ath_intr(void *);
#define ath_hal_getregdomain(_ah, _prd) \
(ath_hal_getcapability(_ah, HAL_CAP_REG_DMN, 0, (_prd)) == HAL_OK)
#define ath_hal_setregdomain(_ah, _rd) \
- (*(uint16_t *)(((uint8_t *)(_ah)) + 520) = (_rd))
+ (*(uint16_t *)(((uint8_t *)&(_ah)[1]) + 128) = (_rd))
#define ath_hal_getcountrycode(_ah, _pcc) \
(*(_pcc) = (_ah)->ah_countryCode)
#define ath_hal_gettkipmic(_ah) \
OpenPOWER on IntegriCloud