summaryrefslogtreecommitdiff
path: root/include/bluetooth_le_ll.h
diff options
context:
space:
mode:
authorLevi Oliver <levio@google.com>2016-08-09 16:20:14 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-23 15:36:55 -0700
commit1e2148249a82a867b201d0689bdef1fa3d185569 (patch)
treea193c603c6617be133928ed46849161afc2fe5a6 /include/bluetooth_le_ll.h
parent6e866962a0ed5ffa7af96555e2855e4046e5ab7f (diff)
downloadchrome-ec-1e2148249a82a867b201d0689bdef1fa3d185569.tar.gz
btle: Accepts and maintains connections
Can now accept and maintain a single connection indefinitely by sending empty packets at every connection interval to keep the connection alive. TEST=BTLE dongle sending connect requests and connecting to NRF51 running this code. Connection was established and ran for at least 48 hours until manual termination. BUG=None BRANCH=None Change-Id: Iad4bd434ecd1edd6c5c8dfe8b72ca41fd82d0bb4 Signed-off-by: Levi Oliver <levio@google.com> Reviewed-on: https://chromium-review.googlesource.com/370839 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/bluetooth_le_ll.h')
-rw-r--r--include/bluetooth_le_ll.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bluetooth_le_ll.h b/include/bluetooth_le_ll.h
index e6a94a6cfc..dd1f9155fd 100644
--- a/include/bluetooth_le_ll.h
+++ b/include/bluetooth_le_ll.h
@@ -26,6 +26,9 @@ enum ll_state_t {
#define LL_MAX_DATA_PACKET_LENGTH 27
#define LL_MAX_DATA_PACKETS 4
+/* BTLE Spec 4.0: Vol 6, Part B, Section 4.5.3 */
+#define TRANSMIT_WINDOW_OFFSET_CONSTANT 1250
+
#define LL_MAX_BUFFER_SIZE (LL_MAX_DATA_PACKET_LENGTH * LL_MAX_DATA_PACKETS)
#define LL_SUPPORTED_FEATURES (HCI_LE_FTR_ENCRYPTION | \