From 731a8d357f6a25a68b18c27a5792d07dc9c641e4 Mon Sep 17 00:00:00 2001 From: Onkar Date: Thu, 21 Apr 2022 16:57:04 +0530 Subject: [PATCH] feature/added read-write sugg default datalen cmds --- components/bt/host/nimble/nimble | 2 +- components/bt/porting/nimble/include/nimble/hci_common.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index f322e780aa..c23dee337f 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit f322e780aadfcfdc4a21e1418f22db3216e46d97 +Subproject commit c23dee337f809e7e774736265703bf616a966ffa diff --git a/components/bt/porting/nimble/include/nimble/hci_common.h b/components/bt/porting/nimble/include/nimble/hci_common.h index bc6b93fc85..41e3a3ecae 100644 --- a/components/bt/porting/nimble/include/nimble/hci_common.h +++ b/components/bt/porting/nimble/include/nimble/hci_common.h @@ -1222,6 +1222,12 @@ struct ble_hci_vs_rd_static_addr_rp { #define BLE_HCI_SET_DATALEN_TX_TIME_MIN (0x0148) #define BLE_HCI_SET_DATALEN_TX_TIME_MAX (0x4290) +/* --- LE read/write suggested default data length (OCF 0x0023 and 0x0024) */ +#define BLE_HCI_SUGG_DEF_DATALEN_TX_OCTETS_MIN (0x001b) +#define BLE_HCI_SUGG_DEF_DATALEN_TX_OCTETS_MAX (0x00fb) +#define BLE_HCI_SUGG_DEF_DATALEN_TX_TIME_MIN (0x0148) +#define BLE_HCI_SUGG_DEF_DATALEN_TX_TIME_MAX (0x4290) + /* --- LE read maximum default PHY (OCF 0x0030) */ #define BLE_HCI_LE_PHY_1M (1) #define BLE_HCI_LE_PHY_2M (2)