diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/userial_vendor.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/userial_vendor.c b/src/userial_vendor.c index 1a745b5..b9c5f69 100755 --- a/src/userial_vendor.c +++ b/src/userial_vendor.c @@ -137,6 +137,19 @@ void userial_ioctl_init_bt_wake(int fd) { uint32_t bt_wake_state; +#if (BT_WAKE_USERIAL_LDISC==TRUE) + int ldisc = N_BRCM_HCI; /* brcm sleep mode support line discipline */ + + /* attempt to load enable discipline driver */ + if (ioctl(vnd_userial.fd, TIOCSETD, &ldisc) < 0) + { + VNDUSERIALDBG("USERIAL_Open():fd %d, TIOCSETD failed: error %d for ldisc: %d", + fd, errno, ldisc); + } +#endif + + + /* assert BT_WAKE through ioctl */ ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); |
