diff mbox series

ramips: fix ethernet MAC address on Omega2

Message ID mailman.16036.1629334757.1072.openwrt-devel@lists.openwrt.org
State Accepted
Delegated to: Hauke Mehrtens
Headers show
Series ramips: fix ethernet MAC address on Omega2 | expand

Commit Message

Michael Siegenthaler Aug. 19, 2021, 12:58 a.m. UTC
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
According to https://docs.onion.io/omega2-docs/mac-address.html, 0x28 is
the correct location to read the address on Onion Omega 2(+) devices.

This fixes a regression introduced by commit 77e850fe76e3 ("ramips: tidy up
MAC address setup for Linkit Smart and Omega2"), which was a cleanup that
intended to preserve existing behavior. In my testing with v19.07.7,
however, the MAC address determined from the device tree takes precedence
over the one set by 02_network, so the aforementioned commit actually
changed the behavior.

Signed-off-by: Michael Siegenthaler <msiegen@google.com>
diff mbox series

Patch

diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
index b6d2df4756..b18daf71d5 100644
--- a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
+++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
@@ -152,7 +152,7 @@ 
 };

 &ethernet {
- mtd-mac-address = <&factory 0x2e>;
+ mtd-mac-address = <&factory 0x28>;
 };

 &sdhci {