Improve compatibility with 1G SFP modules

Some modules report a nominal signaling rate of 1200 MBd.
This commit is contained in:
Jan Hoffmann
2026-03-27 17:56:40 +01:00
parent df498b0879
commit 9f800bae01
+1 -1
View File
@@ -996,7 +996,7 @@ void handle_tx(void)
static inline uint8_t sfp_rate_to_sds_config(register uint8_t rate) static inline uint8_t sfp_rate_to_sds_config(register uint8_t rate)
{ {
if (rate == 0xd) if (rate == 0xc || rate == 0xd)
return SDS_1000BX_FIBER; return SDS_1000BX_FIBER;
if (rate >= 0x19 && rate <= 0x20) // Ethernet 2.5 GBit if (rate >= 0x19 && rate <= 0x20) // Ethernet 2.5 GBit
return SDS_HSG; return SDS_HSG;