From a5314ffdf0b5a8f10ddeda7a893370ca8c87e9e8 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Fri, 21 Jan 2011 06:42:25 +0000 Subject: [PATCH] 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. --- sys/dev/ath/ath_hal/ah_eeprom_v14.c | 4 ++-- 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 e9eb011aa6e..c58a713309f 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 2f9e5895aef..ea0e5702751 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;