BT: add bt mac address user-defined function.

This commit is contained in:
gwl 2014-09-17 10:41:33 +08:00
parent 24d065d4c0
commit 3871ecbe29
2 changed files with 6 additions and 3 deletions

View 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

View File

@ -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);