From: Dmitry Shmidt Date: Mon, 28 Jun 2010 22:28:37 +0000 (-0700) Subject: network: wireless: bcm4329: Set special OUI: 02:1A:11:FH:HH:HH for SoftAP X-Git-Tag: firefly_0821_release~9833^2~5^2~179 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1ee6838659398da8dda24d8f0d0965b025e01f96;p=firefly-linux-kernel-4.4.55.git network: wireless: bcm4329: Set special OUI: 02:1A:11:FH:HH:HH for SoftAP Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcm4329/dhd_common.c b/drivers/net/wireless/bcm4329/dhd_common.c index 41fe604281e2..74b0a79091b2 100644 --- a/drivers/net/wireless/bcm4329/dhd_common.c +++ b/drivers/net/wireless/bcm4329/dhd_common.c @@ -1274,11 +1274,12 @@ dhd_preinit_ioctls(dhd_pub_t *dhd) uint rand_mac; int ret; - memcpy(iovbuf, dhd->mac.octet, ETHER_ADDR_LEN); srandom32((uint)jiffies); rand_mac = random32(); - iovbuf[0] |= 0x02; /* locally administered bit */ - iovbuf[3] = (unsigned char)rand_mac; + iovbuf[0] = 0x02; /* locally administered bit */ + iovbuf[1] = 0x1A; + iovbuf[2] = 0x11; + iovbuf[3] = (unsigned char)(rand_mac & 0x0F) | 0xF0; iovbuf[4] = (unsigned char)(rand_mac >> 8); iovbuf[5] = (unsigned char)(rand_mac >> 16);