network: wireless: bcm4329: Set special OUI: 02:1A:11:FH:HH:HH for SoftAP
authorDmitry Shmidt <dimitrysh@google.com>
Mon, 28 Jun 2010 22:28:37 +0000 (15:28 -0700)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:39 +0000 (17:49 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcm4329/dhd_common.c

index 41fe604281e2a5a516dc559345fe8f80b21bd209..74b0a79091b21905dd3d95c5411b1a52c244d0cb 100644 (file)
@@ -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);