Skip to content
Snippets Groups Projects
Commit 32ad064e authored by Adam Wujek's avatar Adam Wujek :speech_balloon:
Browse files

userspace/libwr: zero sfp->rx_wl when wl_txrx not present in SFP params


Zero also sfp->rx_wl (not only sfp->tx_wl) when wl_txrx not found for specific
SFP entry.

Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
parent 50cd24dd
Branches
Tags
No related merge requests found
......@@ -634,6 +634,7 @@ int shw_sfp_read_db(void)
__err_msg(index, "wl_txrx", NULL);
if (sscanf(s, "%i+%i", &sfp->tx_wl, &sfp->rx_wl) != 2) {
sfp->tx_wl = 0;
sfp->rx_wl = 0;
__err_msg(index, "wl_txrx", s);
}
......
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