mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
BT: add bt mac address user-defined function.
This commit is contained in:
parent
24d065d4c0
commit
3871ecbe29
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user