Skip to content

Commit

Permalink
ipq40xx: Fix ASUS MAP-AC2200 wrong mac adresses
Browse files Browse the repository at this point in the history
MAP-AC2200 orginal openwrt port seems to give random mac-adress to ethernet ports.
This fixes ethernet ports mac adresses as manufacturer provided.

Signed-off-by: Erkki Hietaranta <[email protected]>
  • Loading branch information
sbeach92 committed Dec 6, 2023
1 parent 2819223 commit 4a5f2e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions target/linux/ipq40xx/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ ipq40xx_setup_macs()
lan_mac=$(macaddr_add "$label_mac" 1)
wan_mac=$(macaddr_add "$label_mac" 3)
;;
asus,map-ac2200)
label_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
lan_mac=$(macaddr_add "$label_mac" 1)
wan_mac=$(macaddr_add "$label_mac" 3)
;;
asus,rt-ac42u)
label_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
;;
Expand Down

0 comments on commit 4a5f2e6

Please sign in to comment.