Fixed onlp_sfp_eeprom_read shifts QSFP EEPROM data

This commit is contained in:
phani-karanam
2018-06-28 16:02:18 +08:00
parent 5c10874cf4
commit d0cbea51a9

View File

@@ -214,8 +214,8 @@ sfpi_eeprom_read(int port, uint8_t devaddr, uint8_t data[256])
return ONLP_STATUS_E_INTERNAL;
}
data[i] = val & 0xff;
data[i+1] = (val >> 8) & 0xff;
data[i*2] = val & 0xff;
data[(i*2)+1] = (val >> 8) & 0xff;
}
return ONLP_STATUS_OK;