Merge "Fix MCT data transport for the BT HAL"

am: a8dce86cd8

Change-Id: I2f25b7caa0c1a40ed5dad2f7b955ffdc13ecba7e
This commit is contained in:
Zach Johnson
2017-03-16 00:45:40 +00:00
committed by android-build-merger

View File

@@ -248,10 +248,9 @@ bool VendorInterface::Open(InitializeCompleteCallback initialize_complete_cb,
new hci::MctProtocol(fd_list, intercept_events, acl_cb);
fd_watcher_.WatchFdForNonBlockingReads(
fd_list[CH_EVT], [mct_hci](int fd) { mct_hci->OnEventDataReady(fd); });
if (fd_count >= CH_ACL_IN)
fd_watcher_.WatchFdForNonBlockingReads(
fd_list[CH_ACL_IN],
[mct_hci](int fd) { mct_hci->OnAclDataReady(fd); });
fd_watcher_.WatchFdForNonBlockingReads(
fd_list[CH_ACL_IN],
[mct_hci](int fd) { mct_hci->OnAclDataReady(fd); });
hci_ = mct_hci;
}