Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55948
b: refs/heads/master
c: d215874
h: refs/heads/master
v: v3
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed May 11, 2007
1 parent 11e4d7a commit 0675218
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5be3946647424b08db0f62c545215cf506af8a52
refs/heads/master: d215874460e7657b8e104de024140e0932690450
5 changes: 5 additions & 0 deletions trunk/drivers/bluetooth/hci_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,11 @@ static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file * file,
return hu->proto->id;
return -EUNATCH;

case HCIUARTGETDEVICE:
if (test_bit(HCI_UART_PROTO_SET, &hu->flags))
return hu->hdev->id;
return -EUNATCH;

default:
err = n_tty_ioctl(tty, file, cmd, arg);
break;
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/bluetooth/hci_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
#endif

/* Ioctls */
#define HCIUARTSETPROTO _IOW('U', 200, int)
#define HCIUARTGETPROTO _IOR('U', 201, int)
#define HCIUARTSETPROTO _IOW('U', 200, int)
#define HCIUARTGETPROTO _IOR('U', 201, int)
#define HCIUARTGETDEVICE _IOR('U', 202, int)

/* UART protocols */
#define HCI_UART_MAX_PROTO 4
Expand Down

0 comments on commit 0675218

Please sign in to comment.