From 3871ecbe29aa2c99e3e63160f064e90564b94c7f Mon Sep 17 00:00:00 2001
From: gwl <gwl@rock-chips.com>
Date: Wed, 17 Sep 2014 10:41:33 +0800
Subject: [PATCH] BT: add bt mac address user-defined function.

---
 drivers/bluetooth/Makefile | 1 +
 drivers/bluetooth/vflash.c | 8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile
index 84cf495ad6e0..d1257b234132 100644
--- a/drivers/bluetooth/Makefile
+++ b/drivers/bluetooth/Makefile
@@ -2,6 +2,7 @@
 # Makefile for the Linux Bluetooth HCI device drivers.
 #
 
+obj-$(CONFIG_BT)        += vflash.o
 obj-$(CONFIG_BT_HCIVHCI)	+= hci_vhci.o
 obj-$(CONFIG_BT_HCIUART)	+= hci_uart.o
 obj-$(CONFIG_BT_HCIBCM203X)	+= bcm203x.o
diff --git a/drivers/bluetooth/vflash.c b/drivers/bluetooth/vflash.c
index 266ea175f5c8..bb37c7395718 100755
--- a/drivers/bluetooth/vflash.c
+++ b/drivers/bluetooth/vflash.c
@@ -90,11 +90,13 @@ static long vflash_ioctl(struct file *file,
             }
 
             
+            //printk("%s: ====> get bt addr from flash=[%02x:%02x:%02x:%02x:%02x:%02x]\n", __FUNCTION__,
+            //      bd_addr[5], bd_addr[4], bd_addr[3], bd_addr[2], bd_addr[1], bd_addr[0]);
 	    if(copy_to_user(argp, bd_addr, 6))
-			{
-			    printk("ERROR: copy_to_user---%s\n", __FUNCTION__);
+            {
+                printk("ERROR: copy_to_user---%s\n", __FUNCTION__);
                 kfree(tempBuf);
-			    return -EFAULT;
+                return -EFAULT;
             }
             
             kfree(tempBuf);
-- 
2.34.1