ramips: fix gmac definition for cudy ap1300 outdoor main master
authorSteffen Förster <nemesis@chemnitz.freifunk.net>
Wed, 14 Jan 2026 19:45:01 +0000 (20:45 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 15 Jan 2026 22:08:37 +0000 (23:08 +0100)
The gmac definition has an offset of 1 at the moment. This leads to an
off by one error in downstream projects that rely on the package label mac.

Signed-off-by: Steffen Förster <nemesis@chemnitz.freifunk.net>
Link: https://github.com/openwrt/openwrt/pull/21543
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/dts/mt7621_cudy_ap1300-outdoor-v1.dts

index f6dbd17a875224eab35b3556cebf6b9bc12c0f90..8cb9c92183b522e5e8d076a270245b33b1c5e34a 100644 (file)
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00 1>;
+               nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00 0>;
                nvmem-cell-names = "eeprom", "mac-address";
                ieee80211-freq-limit = <2400000 2500000>;
        };
        wifi@1,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_factory_8000>, <&macaddr_bdinfo_de00 2>;
+               nvmem-cells = <&eeprom_factory_8000>, <&macaddr_bdinfo_de00 1>;
                nvmem-cell-names = "eeprom", "mac-address";
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
 
 &gmac0 {
-       nvmem-cells = <&macaddr_bdinfo_de00 1>;
+       nvmem-cells = <&macaddr_bdinfo_de00 0>;
        nvmem-cell-names = "mac-address";
 };