From 36de7b7241cf89e3f8eea08abd11ea58438810d8 Mon Sep 17 00:00:00 2001 From: Mariappan Ramasamy <1221719+nappairam@users.noreply.github.com> Date: Mon, 26 Oct 2026 23:48:36 +0800 Subject: [PATCH] machine: read factory MAC on SWTG018AS-A V2.0 Horaco HC-SWTGW218AS units on this PCB keep their factory MAC at 0x1FC000, the offset the other boards in machine/ read it from, so use it instead of a generated locally administered one. If the flash holds no valid MAC there, the generated one is still used. --- machine/SWTG018AS_A_V_2_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/machine/SWTG018AS_A_V_2_0.c b/machine/SWTG018AS_A_V_2_0.c index 7d749fde..6e0fd109 100644 --- a/machine/SWTG018AS_A_V_2_0.c +++ b/machine/SWTG018AS_A_V_2_0.c @@ -2,6 +2,7 @@ __code const struct machine machine = { MACHINE_COMMON_SETTING, + .mac_flash_offset = 0x1FC000, .n_sfp = 1, .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8},