{
struct uinput_dev dev;
int fd, err, i;
- char src[18];
+ char dest[18], src[18];
fd = open("/dev/uinput", O_RDWR);
if (fd < 0) {
ioctl(fd, UI_SET_EVBIT, EV_SYN);
ba2strlc(btd_adapter_get_address(device_get_adapter(device)), src);
+ ba2strlc(device_get_address(device), dest);
ioctl(fd, UI_SET_PHYS, src);
+ ioctl(fd, UI_SET_UNIQ, dest);
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
ioctl(fd, UI_SET_EVBIT, EV_ABS);
#define UI_SET_FFBIT _IOW(UINPUT_IOCTL_BASE, 107, int)
#define UI_SET_PHYS _IOW(UINPUT_IOCTL_BASE, 108, char*)
#define UI_SET_SWBIT _IOW(UINPUT_IOCTL_BASE, 109, int)
+#define UI_SET_PROPBIT _IOW(UINPUT_IOCTL_BASE, 110, int)
+#define UI_SET_UNIQ _IOW(UINPUT_IOCTL_BASE, 111, char*)
#ifndef NBITS
#define NBITS(x) ((((x) - 1) / (sizeof(long) * 8)) + 1)