From b96d99dacd01873601f7113ed545e1272d1cfa82 Mon Sep 17 00:00:00 2001 From: rpaulo Date: Tue, 9 Sep 2008 16:21:25 +0000 Subject: Update for new HAL. Reviewed by: sam --- sys/dev/ath/if_athvar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- cgit v1.1