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 Chadd 2011-01-21 06:42:25 +00:00
parent a108ab6394
commit a5314ffdf0
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;