net: wireless: bcmdhd: Fix mac setting from platform hook
Dmitry Shmidt [Tue, 13 Mar 2012 22:25:46 +0000 (15:25 -0700)]
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

drivers/net/wireless/bcmdhd/dhd_linux.c

index fd4719e..b58a979 100644 (file)
@@ -2970,6 +2970,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 */