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:
parent
88a17f226b
commit
13ebfcd94f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user