diff options
author | adrian <adrian@FreeBSD.org> | 2011-01-21 06:42:25 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-01-21 06:42:25 +0000 |
commit | 13ebfcd94f2f8d06df65d714150c7fd68f364418 (patch) | |
tree | bae0382320293311ab1897ccd3331121c61e3c87 | |
parent | 88a17f226bbf21660de0c815f9433399dab761a8 (diff) | |
download | FreeBSD-src-13ebfcd94f2f8d06df65d714150c7fd68f364418.zip FreeBSD-src-13ebfcd94f2f8d06df65d714150c7fd68f364418.tar.gz |
Modify the v14/v4k eeprom diag interface to return the whole eeprom.
The v1 and v3 interfaces returned the whole EEPROM but the v14/v4k
interfaces just returned the base header. There's extra information
outside of that which would also be nice to get access to.
-rw-r--r-- | sys/dev/ath/ath_hal/ah_eeprom_v14.c | 4 | ||||
-rw-r--r-- | sys/dev/ath/ath_hal/ah_eeprom_v4k.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ath/ath_hal/ah_eeprom_v14.c b/sys/dev/ath/ath_hal/ah_eeprom_v14.c index e9eb011..c58a713 100644 --- a/sys/dev/ath/ath_hal/ah_eeprom_v14.c +++ b/sys/dev/ath/ath_hal/ah_eeprom_v14.c @@ -159,8 +159,8 @@ v14EepromDiag(struct ath_hal *ah, int request, switch (request) { case HAL_DIAG_EEPROM: - *result = &ee->ee_base; - *resultsize = sizeof(ee->ee_base); + *result = ee; + *resultsize = sizeof(HAL_EEPROM_v14); return AH_TRUE; } return AH_FALSE; diff --git a/sys/dev/ath/ath_hal/ah_eeprom_v4k.c b/sys/dev/ath/ath_hal/ah_eeprom_v4k.c index 2f9e589..ea0e570 100644 --- a/sys/dev/ath/ath_hal/ah_eeprom_v4k.c +++ b/sys/dev/ath/ath_hal/ah_eeprom_v4k.c @@ -137,8 +137,8 @@ v4kEepromDiag(struct ath_hal *ah, int request, switch (request) { case HAL_DIAG_EEPROM: - *result = &ee->ee_base; - *resultsize = sizeof(ee->ee_base); + *result = ee; + *resultsize = sizeof(HAL_EEPROM_v4k); return AH_TRUE; } return AH_FALSE; |