wifi: ath11k: retrieve MAC address from system firmware if provided
authorJun Yu <junyuu@chromium.org>
Tue, 20 Sep 2022 00:31:17 +0000 (00:31 +0000)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 22 Sep 2022 07:33:27 +0000 (10:33 +0300)
commit176239a9a2e3c519923d7bd8bb205838d48c7a3c
tree6547e5a015b119a47f3d74f415162108792bf98b
parent9a2aa68afe3dd1cbb194523415410965deea6277
wifi: ath11k: 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
ahb WCN6750).

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

Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1

Signed-off-by: Jun Yu <junyuu@chromium.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220920003117.841442-1-junyuu@chromium.org
drivers/net/wireless/ath/ath11k/mac.c