aboutsummaryrefslogtreecommitdiffstats
path: root/src/direct_bt/HCIComm.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-05-25 21:34:38 +0200
committerSven Gothel <[email protected]>2020-05-25 21:34:38 +0200
commit3021035aa42a8d8075615e5159e9ebd2d70b58ae (patch)
treec67a827f4e10229665d793ebd93378ca023fdd74 /src/direct_bt/HCIComm.cpp
parent589e2718189a4501c3611cbceffc3a90d2ff7ef5 (diff)
DBTDevice/HCIComm: More 'snappy' connect method names and drop unused LE min/max ce_len,filter params
Show device on connection failure.
Diffstat (limited to 'src/direct_bt/HCIComm.cpp')
-rw-r--r--src/direct_bt/HCIComm.cpp9
1 files changed, 6 insertions, 3 deletions
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<std::recursive_mutex> 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);