octeontx2-pf: Fix otx2_get_fecparam()
[linux-2.6-microblaze.git] / drivers / net / ethernet / marvell / octeontx2 / nic / otx2_ethtool.c
index 5fe7403..f4962a9 100644 (file)
@@ -968,7 +968,7 @@ static int otx2_get_fecparam(struct net_device *netdev,
                if (!rsp->fwdata.supported_fec)
                        fecparam->fec = ETHTOOL_FEC_NONE;
                else
-                       fecparam->fec = fec[rsp->fwdata.supported_fec - 1];
+                       fecparam->fec = fec[rsp->fwdata.supported_fec];
        }
        return 0;
 }