Skip to content
Snippets Groups Projects
Commit 9c778175 authored by Adam Wujek's avatar Adam Wujek
Browse files

userspace/wrsw_hal/hal_ports: store TX wavelength even if there is no match to DB


Signed-off-by: default avatarAdam Wujek <dev_public@wujek.eu>
parent 55cb17d1
No related merge requests found
......@@ -515,6 +515,7 @@ static void hal_port_insert_sfp(struct hal_port_state * ps)
strncpy(ps->calib.sfp.part_num, (void *)shdr.vendor_pn, VENDOR_PN_LEN);
strncpy(ps->calib.sfp.vendor_serial, (void *)shdr.vendor_serial, VENDOR_SERIAL_LEN);
strncpy(ps->calib.sfp.vendor_revision, (void *)shdr.vendor_rev, VENDOR_REV_LEN);
ps->calib.sfp.tx_wl = getSfpTxWaveLength(&shdr);
/* check if SFP is 1GbE */
ps->calib.sfp.flags |= shdr.br_nom == SFP_SPEED_1Gb ? SFP_FLAG_1GbE : 0;
ps->calib.sfp.flags |= shdr.br_nom == SFP_SPEED_1Gb_10 ? SFP_FLAG_1GbE : 0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment