BT: add bt mac address user-defined function.
authorgwl <gwl@rock-chips.com>
Wed, 17 Sep 2014 02:41:33 +0000 (10:41 +0800)
committergwl <gwl@rock-chips.com>
Wed, 17 Sep 2014 02:41:38 +0000 (10:41 +0800)
drivers/bluetooth/Makefile
drivers/bluetooth/vflash.c

index 84cf495ad6e0c556b852483118895554a96b7add..d1257b2341327d262f6de9c98a39852cebf70284 100644 (file)
@@ -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
index 266ea175f5c8e9a87ec75916f24b4dc7488c658d..bb37c739571860becfe89a706b3e54a44890dec7 100755 (executable)
@@ -90,11 +90,13 @@ static long vflash_ioctl(struct file *file,
             }\r
 \r
             \r
+            //printk("%s: ====> get bt addr from flash=[%02x:%02x:%02x:%02x:%02x:%02x]\n", __FUNCTION__,\r
+            //      bd_addr[5], bd_addr[4], bd_addr[3], bd_addr[2], bd_addr[1], bd_addr[0]);\r
            if(copy_to_user(argp, bd_addr, 6))\r
-                       {\r
-                           printk("ERROR: copy_to_user---%s\n", __FUNCTION__);\r
+            {\r
+                printk("ERROR: copy_to_user---%s\n", __FUNCTION__);\r
                 kfree(tempBuf);\r
-                           return -EFAULT;\r
+                return -EFAULT;\r
             }\r
             \r
             kfree(tempBuf);\r