From c2980e42d8c974524fd2dfbb3b31a7ff1cf8db96 Mon Sep 17 00:00:00 2001 From: bloqaudio Date: Mon, 12 Oct 2026 12:02:02 -0500 Subject: [PATCH] mirror: show the configured monitor port in "mirror status" "mirror status" printed the local mirroring_port, which is still 0 at that point, so it named the same port whatever was configured. Print the port from RTL837x_MIRROR_CTRL instead, which the function has already read to tell whether mirroring is enabled. send_mirror() decodes the register the same way for the web interface. --- cmd_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd_parser.c b/cmd_parser.c index e16fa108..940b42ec 100644 --- a/cmd_parser.c +++ b/cmd_parser.c @@ -826,7 +826,7 @@ void parse_mirror(void) print_string("NOT Enabled: "); } print_string("Mirroring port: "); - print_phys_port(mirroring_port); + print_phys_port(mPort >> 1); reg_read_m(RTL837x_MIRROR_CONF); uint16_t m = sfr_data[0]; m = (m << 8) | sfr_data[1];