]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: don't implicitly configure port MAC addresses
authorJan Hoffmann <jan@3e8.eu>
Thu, 22 Jan 2026 19:21:35 +0000 (20:21 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 10 Feb 2026 00:39:52 +0000 (01:39 +0100)
commit0686fed2b40512bfa0fa859433fe533b0260f18c
treee4dc83dd7b96a1b96b56619b01d4bd6d27081fcd
parentf27f3e7f233aa869935015219cb57d1377b646c2
realtek: don't implicitly configure port MAC addresses

Currently, the 02_network script always configures MAC addresses for
each individual LAN port unless "lan_mac_start" is set to "skip". This
behaviour can be unexpected, and is also somewhat broken, as it even
continues to do so when "lan_mac_start" is empty.

Change it to only do the configuration if "lan_mac_start" is non-empty,
and also remove the fallback to "lan_mac", making this more obvious and
less error-prone.

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