ramips: fix Archer C20i wireless MAC address
authorDavid Bauer <mail@david-bauer.net>
Thu, 2 Jan 2020 18:27:54 +0000 (19:27 +0100)
committerDavid Bauer <mail@david-bauer.net>
Fri, 3 Jan 2020 16:52:36 +0000 (17:52 +0100)
The TP-Link Archer C20i previously had a generic Ralink MAC address set
for both radios, as the caldata does only contain a generic MAC address.

Set the MAC address from the vendor firmware for both radios to assign
unique MAC addresses to every device.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 3b013dcdf8d8aa0e3601e3aac30342318025e32a)

target/linux/ramips/dts/ArcherC20i.dts

index 94efb89dc8f58dc0e66a970c6a5be659d2422397..8d4f51a5f664ab83837270cb523e4fd3acaaa635 100644 (file)
 
 &wmac {
        ralink,mtd-eeprom = <&radio 0>;
+       mtd-mac-address = <&rom 0xf100>;
 };
 
 &pcie {
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&radio 32768>;
                ieee80211-freq-limit = <5000000 6000000>;
+               mtd-mac-address = <&rom 0xf100>;
+               mtd-mac-address-increment = <(-1)>;
        };
 };