Fix error in calculating VLAN for L2 entries

This commit is contained in:
logicog
2026-01-16 18:04:22 +01:00
parent 5cb1acfc15
commit e7df748b6a
+1 -1
View File
@@ -287,7 +287,7 @@ void port_l2_learned(void) __banked
// VLAN // VLAN
reg_read_m(RTL837x_L2_DATA_OUT_B); reg_read_m(RTL837x_L2_DATA_OUT_B);
print_short( ((uint16_t) (sfr_data[0] & 0x0f)) | sfr_data[1]); // VLAN print_short( (((uint16_t) (sfr_data[0] & 0x0f)) << 8) | sfr_data[1]); // VLAN
// type // type
reg_read_m(RTL837x_L2_DATA_OUT_C); reg_read_m(RTL837x_L2_DATA_OUT_C);