lantiq: wifi mac fix for ARV752DPW
authorLars Wessels <software@bytebox.org>
Sat, 4 Jul 2020 11:59:17 +0000 (13:59 +0200)
committerDavid Bauer <mail@david-bauer.net>
Mon, 6 Jul 2020 15:57:13 +0000 (17:57 +0200)
Set wifi mac from flash partition 'board_config' to
match the label on the device (Easybox 802).

Currently the wifi mac is always set to 00:0c:43:28:60:00.
eth0 and WiFi will now share the same mac (as in original firmware).

Signed-off-by: Lars Wessels <software@bytebox.org>
[improve commit message]
Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/lantiq/files-4.19/arch/mips/boot/dts/lantiq/danube_arcadyan_arv752dpw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv752dpw.dts

index 069b1b1ed64be2452bbcde9a5519d04013081d87..7c51f31bad51ed29dec34dce0a8ee63f9dca0fe8 100644 (file)
@@ -21,6 +21,8 @@
                led-dsl = &internet_red;
                led-usb = &umts;
                led-wifi = &wifi;
+
+               label-mac-device = &wifi0;
        };
 
        memory@0 {
        interrupt-map = <0x7000 0 0 1 &icu0 135>;
        req-mask = <0x3>;
 
-       wifi@1814,0601 {
+       wifi0: wifi@1814,0601 {
                compatible = "pci1814,0601";
                reg = <0x7000 0 0 0 0>;
+               mtd-mac-address = <&boardconfig 0x16>;
                ralink,mtd-eeprom = <&boardconfig 0x410>;
                ralink,mtd-eeprom-swap;
        };
index 069b1b1ed64be2452bbcde9a5519d04013081d87..7c51f31bad51ed29dec34dce0a8ee63f9dca0fe8 100644 (file)
@@ -21,6 +21,8 @@
                led-dsl = &internet_red;
                led-usb = &umts;
                led-wifi = &wifi;
+
+               label-mac-device = &wifi0;
        };
 
        memory@0 {
        interrupt-map = <0x7000 0 0 1 &icu0 135>;
        req-mask = <0x3>;
 
-       wifi@1814,0601 {
+       wifi0: wifi@1814,0601 {
                compatible = "pci1814,0601";
                reg = <0x7000 0 0 0 0>;
+               mtd-mac-address = <&boardconfig 0x16>;
                ralink,mtd-eeprom = <&boardconfig 0x410>;
                ralink,mtd-eeprom-swap;
        };