Merge pull request #176 from janh/improve-2500m-sfp-compat

Improve compatibility with 2.5G SFP modules
This commit is contained in:
logicog
2026-03-24 18:13:27 +01:00
committed by GitHub
+1 -1
View File
@@ -997,7 +997,7 @@ static inline uint8_t sfp_rate_to_sds_config(register uint8_t rate)
{ {
if (rate == 0xd) if (rate == 0xd)
return SDS_1000BX_FIBER; return SDS_1000BX_FIBER;
if (rate == 0x1f) // Ethernet 2.5 GBit if (rate >= 0x19 && rate <= 0x20) // Ethernet 2.5 GBit
return SDS_HSG; return SDS_HSG;
if (rate > 0x65 && rate < 0x70) if (rate > 0x65 && rate < 0x70)
return SDS_10GR; return SDS_10GR;