ar71xx: Fix PowerCloud CR5000 5GHz wifi mac
authorDaniel F. Dickinson <cshored@thecshore.com>
Mon, 17 Dec 2018 05:25:03 +0000 (00:25 -0500)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 20 Dec 2018 17:28:59 +0000 (18:28 +0100)
commit99c81eab785e8f50963c6c730a183a2f95ef4a54
tree16fca287e6b7764edc2d0d49a46eaa79d6c1a77d
parent9b8ea3623b22509b7c5090dc50e18e9af1f13405
ar71xx: Fix PowerCloud CR5000 5GHz wifi mac

Without this patch PowerCloud CR5000 AR9382 PCIe 5GHz Wifi uses
the mac address from eeprom instead the one specified when
initializing the PCIe chip.  There were two issues:

1) ap94_pci_init on the second PCIe wmac is wrong as there is only one
PCIe wmac on this device (the other wmac is the AR1022/AR9342 SoC wmac).
2) Without specifying pdata->use_eeprom there is a failure to load
firmware and caldata.

Thanks to Christian Lamparter (@chunkeey) for the heavy lifting and
help. [0]

[0] <https://github.com/openwrt/openwrt/pull/1613>

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
target/linux/ar71xx/files/arch/mips/ath79/mach-cr5000.c