Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
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);