diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 0d4177c6d53f..14e510866008 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -1290,7 +1290,7 @@ bool PortsOrch::setPortFec(Port &port, string &mode) SWSS_LOG_NOTICE("Set port %s FEC mode %s", port.m_alias.c_str(), mode.c_str()); - setGearboxPortsAttr(port, SAI_PORT_ATTR_FEC_MODE, &mode); + setGearboxPortsAttr(port, SAI_PORT_ATTR_FEC_MODE, &port.m_fec_mode); return true; } @@ -7869,4 +7869,4 @@ void PortsOrch::doTask(swss::SelectableTimer &timer) { m_port_state_poller->stop(); } -} \ No newline at end of file +}