From f3e1a393b5362a1ee57410a8d4c7af5ad4cc7ca3 Mon Sep 17 00:00:00 2001 From: bloqaudio Date: Mon, 14 Sep 2026 08:05:57 -0500 Subject: [PATCH] stp: accept the documented port keyword again The rename of the entity index turned `stp port ` into `stp ent ` in the parser only. doc/stp.md, the web UI and every saved startup config still spell it `stp port`, so per-port settings were rejected on the console and silently dropped when the startup config was replayed at boot. Restore the keyword; `stp lag ` is unchanged. --- rtl837x_stp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl837x_stp.c b/rtl837x_stp.c index b29a0193..14f92387 100644 --- a/rtl837x_stp.c +++ b/rtl837x_stp.c @@ -996,7 +996,7 @@ void stp_parse(void) __banked __reentrant if (cmd_words_len < 3) goto err; - if (cmd_compare(1, "ent") || cmd_compare(1, "lag")) { + if (cmd_compare(1, "port") || cmd_compare(1, "lag")) { stp_lag_map(); if (cmd_words_len < 4) goto err; @@ -1134,5 +1134,5 @@ void stp_parse(void) __banked __reentrant } return; err: - print_string("Error: stp on|off|status | prio <0-15> | hello <1-10> | maxage <6-40> | fwd <4-30> | txhold <1-10> | version rstp|stp | ent <1-9>|lag <1-4> on|off|edge|cost|prio|guard|filter ...\n"); + print_string("Error: stp on|off|status | prio <0-15> | hello <1-10> | maxage <6-40> | fwd <4-30> | txhold <1-10> | version rstp|stp | port <1-9>|lag <1-4> on|off|edge|cost|prio|guard|filter ...\n"); }