From 3021035aa42a8d8075615e5159e9ebd2d70b58ae Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 25 May 2020 21:34:38 +0200 Subject: DBTDevice/HCIComm: More 'snappy' connect method names and drop unused LE min/max ce_len,filter params Show device on connection failure. --- src/direct_bt/HCIComm.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/direct_bt/HCIComm.cpp') diff --git a/src/direct_bt/HCIComm.cpp b/src/direct_bt/HCIComm.cpp index 1a89d853..3344830f 100644 --- a/src/direct_bt/HCIComm.cpp +++ b/src/direct_bt/HCIComm.cpp @@ -594,9 +594,7 @@ uint16_t HCIComm::le_create_conn(const EUI48 &peer_bdaddr, const HCIAddressType own_mac_type, const uint16_t interval, const uint16_t window, const uint16_t min_interval, const uint16_t max_interval, - const uint16_t latency, const uint16_t supervision_timeout, - const uint16_t min_ce_length, const uint16_t max_ce_length, - const uint8_t initiator_filter) + const uint16_t latency, const uint16_t supervision_timeout) { const std::lock_guard lock(mtx); // RAII-style acquire and relinquish via destructor if( 0 > _dd ) { @@ -606,6 +604,11 @@ uint16_t HCIComm::le_create_conn(const EUI48 &peer_bdaddr, hci_cp_le_create_conn cp; hci_ev_le_conn_complete rp; + const uint16_t min_ce_length = 0x0000; // 0x0001 ?? + const uint16_t max_ce_length = 0x0000; // 0x0001 ?? + const uint8_t initiator_filter = 0x00; + + bzero((void*)&cp, sizeof(cp)); cp.scan_interval = cpu_to_le(interval); cp.scan_window = cpu_to_le(window); -- cgit v1.2.3