]> git.ipfire.org Git - thirdparty/openwrt.git/commit
ath79: wndap360: switch MACs to newer firmware 22895/head
authorRosen Penev <rosenp@gmail.com>
Sat, 11 Apr 2026 22:31:22 +0000 (15:31 -0700)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 10 Jun 2026 07:06:06 +0000 (09:06 +0200)
commit1ac7a562efe9aca9973d188a69d63306c3de081c
tree3aee1e161e4ccb17e8dd73d93d09c502e386885b
parent076eefdc2cb314ac9eeaf0efdc99037bdd028494
ath79: wndap360: switch MACs to newer firmware

Original ar71xx has this setup:

define WNDAP360_WMAC0_MAC_OFFSET               0x120c
define WNDAP360_WMAC1_MAC_OFFSET               0x520c

/* Reusing wifi MAC with offset of 1 as eth0 MAC */
ath79_init_mac(ath79_eth0_data.mac_addr,
               art + WNDAP360_WMAC0_MAC_OFFSET, 1);

ap94_pci_init(art + WNDAP360_CALDATA0_OFFSET,
              art + WNDAP360_WMAC0_MAC_OFFSET,
              art + WNDAP360_CALDATA1_OFFSET,
              art + WNDAP360_WMAC1_MAC_OFFSET);

The ath79 port made a questionable change for eth0 being just art with
no offset. That MAC ends up being the OUI for Atheros.

WNDAP360_WMAC1_MAC_OFFSET is the same as WNDAP360_WMAC0_MAC_OFFSET
except with the first hex value being subtracted by 2, which is not a
valid OUI.

And newer Netgear firmware seems to assign differently as well,
art_120C as a base and the others incremented by 0x8.

Switch the assignment to the latest firmware and add label-mac-device to
document that the first Wi-FI MAC address is printed on the device.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22895
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/ath79/dts/ar7161_netgear_wndap360.dts