openwrt-pf/target/linux
Adrian Schmutzler f6385f30bd ath79: fix source of label MAC address for Ubiquiti XM devices
In d421a8b944 ("ath79: read label MAC address from flash instead
of using phy0/phy1") the source of the label MAC address was changed
for devices just reading it from phy0. To get rid of the dependency
from phy startup, addresses were read directly from the flash
locations that are used to initialize the phy MAC addresses.

Unfortunately, it turned out that Ubiquiti XM devices seem to have
different flash locations than expected, and also seem to have
specific locations for different devices (all in art/EEPROM):

0xe012 AR9280 Nanostation M2 - 0x120c
0xe035 AR9280 Nanostation M3 - 0x120c
0xe1b2 AR9280 Rocket M2 - 0x120c
0xe1c3 AR9280 Rocket M3 - 0x120c
0xe1b5 AR9280 Rocket M5 - 0x120c
0xe2d5 AR9280 Bullet M2 Titanium - 0x120c
0xe2b5 AR9280 Nanobridge M5 - 0x120c
0xe202 AR9280 Bullet M2 - 0x120c
0xe232 AR9287 Nanobridge M2 - 0x110c
0xe4a2 AR9285 AirRouter - 0xa0bf
Picostation M2 - 0x120c and 0xa0bf
Nanostation Loco M2 - not in 0x120c, other locations not checked

An additional problem of the Ubiquiti device support in OpenWrt is
that we provide images that match several subvariants of the devices,
which might have different MAC address locations.

Given that reading the address from phy0 in 02_network _is_ working
for the ath79 target in general, it does not seem reasonable to
rebuild a complex MAC address retrieval mechanism which is already
present in the ath9k driver.

So, this patch reverts the label MAC address source for Ubiquiti XM
devices (and the Unifi AP) to /sys/class/ieee80211/phy0/macaddress.

This doesn't affect XW and Unifi AC devices, where the label MAC
address source is defined via device tree.

For alfa-network,ap121f the location 0x1002 is kept, as this has
been verified during device support preparation in PR #2199.

Fixes: d421a8b944 ("ath79: read label MAC address from flash
instead of using phy0/phy1")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-12-03 13:30:51 +01:00
..
apm821xx treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
ar7
ar71xx ar71xx: ubnt-(xm,xw): add rssileds package 2019-11-21 12:55:50 +01:00
arc770
archs38
armvirt
at91
ath25
ath79 ath79: fix source of label MAC address for Ubiquiti XM devices 2019-12-03 13:30:51 +01:00
bcm53xx
brcm47xx kernel: bump 4.19 to 4.19.85 2019-11-22 16:56:46 +01:00
brcm63xx kernel: bump 4.19 to 4.19.85 2019-11-22 16:56:46 +01:00
brcm2708 kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
cns3xxx kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
gemini kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
generic generic ar8xxx: increase VLAN table for AR83x7 2019-11-30 16:49:05 +01:00
imx6
ipq40xx ipq40xx: add support for Crisis Innovation Lab MeshPoint.One 2019-11-30 00:53:36 +01:00
ipq806x kernel: bump 4.14 to 4.14.156 2019-11-29 09:59:49 +01:00
ixp4xx
kirkwood
lantiq kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
layerscape kernel: bump 4.14 to 4.14.156 2019-11-29 09:59:49 +01:00
malta
mediatek kernel: bump 4.14 to 4.14.156 2019-11-29 09:59:49 +01:00
mpc85xx mpc85xx: add vendor to Makefile node name, derive SUPPORTED_DEVICES 2019-11-27 22:54:36 +01:00
mvebu treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
mxs treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
octeon octeon: fix sysupgrade 2019-11-30 20:19:12 +02:00
octeontx octeontx: fix thunderx BGX underflow irq name 2019-10-27 12:13:59 +01:00
omap omap: switch from uEnv.txt to generic distro booting 2019-11-20 10:46:19 +01:00
orion
oxnas kernel: bump 4.14 to 4.14.156 2019-11-29 09:59:49 +01:00
pistachio
ramips kernel: bump 4.14 to 4.14.156 2019-11-29 09:59:49 +01:00
rb532
samsung
sunxi treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
tegra x86,tegra,mvebu: image: use common reproducible IMG_PART_SIGNATURE 2019-11-11 16:37:13 +01:00
uml
x86 kernel: bump 4.19 to 4.19.84 2019-11-19 14:59:03 +01:00
zynq treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
Makefile