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.
This commit is contained in:
adrian 2011-01-21 06:42:25 +00:00
parent 88a17f226b
commit 13ebfcd94f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;