ath10k: retrieve MAC address from system firmware if provided
authorBrian Norris <briannorris@chromium.org>
Tue, 28 Aug 2018 16:48:17 +0000 (19:48 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 3 Sep 2018 16:53:18 +0000 (19:53 +0300)
commit9d5804662ce1f9bdde0a14c3c40940acbbf09538
treef71677d974b3a69bbcd508fbb14a479ab69a89d2
parent9cac6a9b629739537d7792898cc0d401ae020205
ath10k: retrieve MAC address from system firmware if provided

Devices may provide their own MAC address via system firmware (e.g.,
device tree), especially in the case where the device doesn't have a
useful EEPROM on which to store its MAC address (e.g., for integrated
Wifi).

Use the generic device helper to retrieve the MAC address, and (if
present) honor it above the MAC address advertised by the card.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/wmi.c