This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push: new d6fd95b nimble/ll: Fix missing Read Remote Version Info in supported commands d6fd95b is described below commit d6fd95b184fb5778e28c4333f71621d9f368a815 Author: Szymon Janc <szymon.j...@codecoup.pl> AuthorDate: Wed Mar 23 14:55:40 2022 +0100 nimble/ll: Fix missing Read Remote Version Info in supported commands Read Remote Version Information command bit was not set in supported HCI commands bitmask. --- nimble/controller/src/ble_ll_supp_cmd.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nimble/controller/src/ble_ll_supp_cmd.c b/nimble/controller/src/ble_ll_supp_cmd.c index f6dab06..6903c8d 100644 --- a/nimble/controller/src/ble_ll_supp_cmd.c +++ b/nimble/controller/src/ble_ll_supp_cmd.c @@ -34,6 +34,14 @@ #endif #define BLE_LL_SUPP_CMD_OCTET_0 (BLE_SUPP_CMD_DISCONNECT) +/* Octet 2*/ +#if MYNEWT_VAL(BLE_LL_ROLE_PERIPHERAL) || MYNEWT_VAL(BLE_LL_ROLE_CENTRAL) +#define BLE_SUPP_CMD_READ_REM_VER_INFO (1 << 7) +#else +#define BLE_SUPP_CMD_READ_REM_VER_INFO (0 << 7) +#endif +#define BLE_LL_SUPP_CMD_OCTET_2 (BLE_SUPP_CMD_READ_REM_VER_INFO) + /* Octet 5 */ #define BLE_SUPP_CMD_SET_EVENT_MASK (1 << 6) #define BLE_SUPP_CMD_RESET (1 << 7) @@ -579,7 +587,7 @@ const uint8_t g_ble_ll_supp_cmds[BLE_LL_SUPP_CMD_LEN] = { BLE_LL_SUPP_CMD_OCTET_0, /* Octet 0 */ 0, - 0, + BLE_LL_SUPP_CMD_OCTET_2, /* Octet 2 */ 0, 0, BLE_LL_SUPP_CMD_OCTET_5,