Skip to content

Commit

Permalink
Fix MAC addresses. Use offsets 0-3 for eth0, eth1, wlan0 and wlan1 re…
Browse files Browse the repository at this point in the history
…spectively
  • Loading branch information
CodingMarco committed Nov 19, 2023
1 parent 1eb3a77 commit 70f3470
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions target/linux/ath79/dts/qca9550_huawei_ap5030dn.dts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@
&wmac {
status = "okay";

nvmem-cells = <&calibration_art_1000>;
nvmem-cell-names = "calibration";
nvmem-cells = <&macaddr_art_2005b>, <&calibration_art_1000>;
nvmem-cell-names = "mac-address", "calibration";
mac-address-increment = <3>;
};

&pcie0 {
Expand All @@ -183,6 +184,7 @@

nvmem-cells = <&macaddr_art_2005b>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;

pll-data = <0x03000101 0x00000101 0x00001313>;
phy-handle = <&phy1>;
Expand Down
3 changes: 1 addition & 2 deletions target/linux/ath79/generic/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,7 @@ ath79_setup_macs()
label_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
;;
huawei,ap5030dn)
lan_mac=$(mtd_get_mac_binary art 0x2005b)
label_mac=$lan_mac
label_mac=$(mtd_get_mac_binary art 0x2005b)
;;
iodata,etg3-r)
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ case "$FIRMWARE" in
;;
huawei,ap5030dn)
caldata_extract "art" 0x5000 0x844
ath10k_patch_mac $(mtd_get_mac_binary art 0x2005b)
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x2005b) 2)
;;
iodata,wn-ac1167dgr|\
iodata,wn-ac1600dgr2|\
Expand Down

0 comments on commit 70f3470

Please sign in to comment.