openwrt/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 kernel: bump 4.9 to 4.9.194 2019-09-24 12:52:05 +02:00
ar71xx ar71xx: ubnt-(xm,xw): add rssileds package 2019-11-21 12:55:50 +01:00
arc770 treewide: remove kmod-usb-core from DEVICE_PACKAGES 2019-10-06 21:28:49 +02:00
archs38 treewide: remove kmod-usb-core from DEVICE_PACKAGES 2019-10-06 21:28:49 +02:00
armvirt armvirt: fix overlay support by updating to f2fs/ext4 based overlays 2019-06-25 14:12:22 +00:00
at91 at91: split up remaining DEVICE_TITLE definitions 2019-10-19 13:16:57 +02:00
ath25 ath25: split up DEVICE_TITLE 2019-10-19 13:16:57 +02:00
ath79 ath79: fix source of label MAC address for Ubiquiti XM devices 2019-12-03 13:30:51 +01:00
bcm53xx bcm53xx: sysupgrade: support Luxul NAND devices 2019-10-15 20:23:04 +02:00
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 imx6: install-dtb as separate IMAGE 2019-09-15 15:00:17 +00:00
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 treewide: remove kmod-usb-core from DEVICE_PACKAGES 2019-10-06 21:28:49 +02:00
kirkwood kirkwood: Fix FS#505 - Can't install LEDE on Linksys EA3500 2019-10-12 23:42:59 +02:00
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 malta: fix overlay support by updating to f2fs/ext4 based overlays 2019-06-25 14:12:22 +00:00
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 orion: replace backticks by $(...) 2019-09-29 00:46:13 +02:00
oxnas kernel: bump 4.14 to 4.14.156 2019-11-29 09:59:49 +01:00
pistachio pistachio: split up DEVICE_TITLE 2019-10-12 23:37:00 +02:00
ramips kernel: bump 4.14 to 4.14.156 2019-11-29 09:59:49 +01:00
rb532 rb532: split up DEVICE_TITLE 2019-10-19 13:16:57 +02:00
samsung samsung: split up DEVICE_TITLE 2019-09-11 15:17:09 +02:00
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 kernel: Deactivate CONFIG_BINFMT_MISC 2019-05-11 17:15:41 +02:00
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