You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2022/03/10 10:57:19 UTC

[mynewt-nimble] branch master updated: nimble/ll: Add HCI Reset to supported commands

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 808ee41  nimble/ll: Add HCI Reset to supported commands
808ee41 is described below

commit 808ee41aee06e9f62812203b17d61a691d34caab
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Mar 8 15:43:46 2022 +0100

    nimble/ll: Add HCI Reset to supported commands
    
    Looks like bit for HCI Reset was not set in supported commands bitmask.
---
 nimble/controller/src/ble_ll_supp_cmd.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_supp_cmd.c b/nimble/controller/src/ble_ll_supp_cmd.c
index 2fc0d7d..f6dab06 100644
--- a/nimble/controller/src/ble_ll_supp_cmd.c
+++ b/nimble/controller/src/ble_ll_supp_cmd.c
@@ -36,7 +36,12 @@
 
 /* Octet 5 */
 #define BLE_SUPP_CMD_SET_EVENT_MASK         (1 << 6)
-#define BLE_LL_SUPP_CMD_OCTET_5             (BLE_SUPP_CMD_SET_EVENT_MASK)
+#define BLE_SUPP_CMD_RESET                  (1 << 7)
+#define BLE_LL_SUPP_CMD_OCTET_5             \
+(                                           \
+    BLE_SUPP_CMD_SET_EVENT_MASK |           \
+    BLE_SUPP_CMD_RESET                      \
+)
 
 /* Octet 10 */
 #define BLE_SUPP_CMD_RD_TX_PWR              (0 << 2)