]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: fix invalid permanent MAC address in wiphy
authorWright Feng <wright.feng@cypress.com>
Thu, 4 Jun 2020 07:18:32 +0000 (02:18 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Jul 2020 09:43:43 +0000 (12:43 +0300)
commitf5c48d91983131e21d1971945024e480c1df0d01
tree29dea5af3d662818e298ba8f38c04aae57107edc
parent0dafae3b51fe4c2052ce85b1dca07a801db2e38e
brcmfmac: fix invalid permanent MAC address in wiphy

When host driver retrieves mac addresses from dongle, driver copies memory
from drvr->mac to perm_addr. But at the moment, drvr->mac is all zero
array which causes permanent MAC address in wiphy is all zero as well.
To fix this, we set drvr->mac before setting perm_addr.

Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200604071835.3842-3-wright.feng@cypress.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c