wifi:bcm4329: add a strategy that use wlan mac address to cauculate bluetooth mac...
authorlbt <lbt@rock-chip.com>
Wed, 30 Mar 2011 08:16:59 +0000 (16:16 +0800)
committerlbt <lbt@rock-chip.com>
Wed, 30 Mar 2011 08:24:00 +0000 (16:24 +0800)
drivers/net/wireless/bcm4329/dhd_cdc.c

index 61f6a6f393a977e96351b669f91204f67c4067d7..a68ad61c58b4f8d6596bb8e27f604d902b0e2c46 100644 (file)
@@ -41,6 +41,8 @@
 #include <dhd_bus.h>
 #include <dhd_dbg.h>
 
+uint8 wlan_mac_addr[ETHER_ADDR_LEN];
+
 extern int dhd_preinit_ioctls(dhd_pub_t *dhd);
 
 /* Packet alignment for most efficient SDIO (can change based on platform) */
@@ -502,6 +504,7 @@ dhd_prot_init(dhd_pub_t *dhd)
                return ret;
        }
        memcpy(dhd->mac.octet, buf, ETHER_ADDR_LEN);
+        memcpy(wlan_mac_addr, buf, ETHER_ADDR_LEN);
 
        dhd_os_proto_unblock(dhd);