Dump EEPROM starting with 0, not 1

Reference: madwifi-trace@3088, madwifi-trace@3422


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3423 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2008-04-03 21:04:52 +00:00
parent 7006778174
commit b9e098b4f7
1 changed files with 2 additions and 2 deletions

View File

@ -1265,14 +1265,14 @@ int main(int argc, char *argv[])
printf("\nEEPROM dump (%d byte)\n", byte_size);
printf("==============================================");
for (i = 1; i <= (byte_size / 2); i++) {
for (i = 0; i < byte_size / 2; i++) {
error =
ath5k_hw_eeprom_read(mem, i, &data, mac_version);
if (error) {
printf("\nUnable to read at %04x\n", i);
continue;
}
if (!((i - 1) % 8))
if (!(i % 8))
printf("\n%04x: ", i);
printf("%04x ", data);
fwrite(&data, 2, 1, dumpfile);