From: Dmitry Shmidt Date: Tue, 13 Mar 2012 22:25:46 +0000 (-0700) Subject: net: wireless: bcmdhd: Fix mac setting from platform hook X-Git-Tag: firefly_0821_release~7613^2~162 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=239e39f268b998b28f4544410a697995f0796794;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Fix mac setting from platform hook Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c index 7006860a82dc..5ed76f9a4ce8 100644 --- a/drivers/net/wireless/bcmdhd/dhd_linux.c +++ b/drivers/net/wireless/bcmdhd/dhd_linux.c @@ -2968,6 +2968,7 @@ dhd_preinit_ioctls(dhd_pub_t *dhd) DHD_ERROR(("%s: can't set MAC address , error=%d\n", __FUNCTION__, ret)); return BCME_NOTUP; } + memcpy(dhd->mac.octet, ea_addr.octet, ETHER_ADDR_LEN); } else { #endif /* GET_CUSTOM_MAC_ENABLE */ /* Get the default device MAC address directly from firmware */