linux-stable/drivers/net/wireless/broadcom/brcm80211
Hector Martin 687f767d6f wifi: brcmfmac: firmware: Allow platform to override macaddr
On Device Tree platforms, it is customary to be able to set the MAC
address via the Device Tree, as it is often stored in system firmware.
This is particularly relevant for Apple ARM64 platforms, where this
information comes from system configuration and passed through by the
bootloader into the DT.

Implement support for this by fetching the platform MAC address and
adding or replacing the macaddr= property in nvram. This becomes the
dongle's default MAC address.

On platforms with an SROM MAC address, this overrides it. On platforms
without one, such as Apple ARM64 devices, this is required for the
firmware to boot (it will fail if it does not have a valid MAC at all).

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/E1oZDnx-0077ae-VK@rmk-PC.armlinux.org.uk
2022-09-19 12:59:34 +03:00
..
brcmfmac wifi: brcmfmac: firmware: Allow platform to override macaddr 2022-09-19 12:59:34 +03:00
brcmsmac Various updates: 2022-08-26 11:56:55 +01:00
brcmutil module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
include wifi: brcmfmac: add 43439 SDIO ids and initialization 2022-09-07 11:01:15 +03:00
Kconfig brcmsmac: rework LED dependencies 2021-12-08 20:17:06 +02:00
Makefile