]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: remove MAC assignment default case in 02_network
authorJan Hoffmann <jan@3e8.eu>
Thu, 22 Jan 2026 19:15:09 +0000 (20:15 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 10 Feb 2026 00:39:52 +0000 (01:39 +0100)
Explicitly specify all devices where the MAC address is configured based
on the U-Boot environment.

This change makes it clearer which devices use this method. Also makes
things simpler for any future devices which handle MAC address
configuration entirely via device tree.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/21644
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/base-files/etc/board.d/02_network

index f08579281e8fa730ef4588db4bcaf6ba3866c0fe..b06829c3d01aef7c26d4954459da371f3f16b6b8 100644 (file)
@@ -101,7 +101,54 @@ realtek_setup_macs()
                label_mac="$lan_mac"
                lan_mac_start=$lan_mac
                ;;
-       *)
+       allnet,all-sg8208m|\
+       apresia,aplgs120gtss|\
+       d-link,dgs-1210-10mp-f|\
+       d-link,dgs-1210-10p|\
+       d-link,dgs-1210-16|\
+       d-link,dgs-1210-20|\
+       d-link,dgs-1210-26|\
+       d-link,dgs-1210-28|\
+       d-link,dgs-1210-28mp-f|\
+       d-link,dgs-1210-28p-f|\
+       d-link,dgs-1210-52|\
+       engenius,ews2910p-v1|\
+       engenius,ews2910p-v3|\
+       hasivo,s1100w-8xgt-se|\
+       inaba,aml2-17gp|\
+       iodata,bsh-g24mb|\
+       linksys,lgs310c|\
+       linksys,lgs328c|\
+       linksys,lgs352c|\
+       netgear,gs108t-v3|\
+       netgear,gs110tpp-v1|\
+       netgear,gs110tup-v1|\
+       netgear,gs308t-v1|\
+       netgear,gs310tp-v1|\
+       netgear,gs750e|\
+       panasonic,m16eg-pn28160k|\
+       panasonic,m24eg-pn28240k|\
+       panasonic,m48eg-pn28480k|\
+       panasonic,m8eg-pn28080k|\
+       vimin,vm-s100-0800ms|\
+       zyxel,gs1900-10hp-a1|\
+       zyxel,gs1900-16-a1|\
+       zyxel,gs1900-24-a1|\
+       zyxel,gs1900-24-b1|\
+       zyxel,gs1900-24e-a1|\
+       zyxel,gs1900-24ep-a1|\
+       zyxel,gs1900-24hp-a1|\
+       zyxel,gs1900-24hp-b1|\
+       zyxel,gs1900-48-a1|\
+       zyxel,gs1900-8-a1|\
+       zyxel,gs1900-8-b1|\
+       zyxel,gs1900-8hp-a1|\
+       zyxel,gs1900-8hp-b1|\
+       zyxel,gs1920-24hp-v1|\
+       zyxel,xgs1210-12-a1|\
+       zyxel,xgs1210-12-b1|\
+       zyxel,xgs1250-12-a1|\
+       zyxel,xgs1250-12-b1)
                lan_mac=$(mtd_get_mac_ascii u-boot-env2 mac_start)
                lan_mac_end=$(mtd_get_mac_ascii u-boot-env2 mac_end)
                label_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)