ath79: fix wmac initialization for Zyxel NBG6716
authorGuillaume Lefebvre <guillaume@zelig.ch>
Fri, 20 Dec 2019 23:21:32 +0000 (00:21 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 13 Apr 2020 17:21:56 +0000 (19:21 +0200)
commitf5a9181d6e94044657df00d3531cf97f2e8d1d16
tree8607b776eb8456f0bb27618cef128f00971b7958
parent97c5fb470997529bf01b730e349ea27641c2be51
ath79: fix wmac initialization for Zyxel NBG6716

2.4 GHz Wifi on ath79 is set up in 10-ath9k-eeprom, but in ar71xx
it was done with ath79_register_wmac.

Thus, the following errors are observed on the device:
ath: phy1: Unable to initialize hardware; initialization status: -5
ath9k 18100000.wmac: failed to initialize device
ath9k: probe of 18100000.wmac failed with error -5

This patch changes the ath79 support to properly use wmac as well.
This will also require fixing the MAC address in a different way.

Signed-off-by: Guillaume Lefebvre <guillaume@zelig.ch>
[several adjustments to 10-fix-wifi-mac, use correct MAC address,
rewrite commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/qca9558_zyxel_nbg6716.dts
target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ath79/nand/base-files/etc/hotplug.d/ieee80211/10-fix-wifi-mac [new file with mode: 0644]