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/11/23 22:50:51 UTC
[mynewt-nimble] branch master updated: nimble/host: Enabled LE Power control event mask if feature is enabled
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 94d4ce06 nimble/host: Enabled LE Power control event mask if feature is enabled
94d4ce06 is described below
commit 94d4ce064805944cddf18debc16c8e8dc160dabf
Author: Rahul Tank <ra...@espressif.com>
AuthorDate: Wed Nov 23 16:24:04 2022 +0530
nimble/host: Enabled LE Power control event mask if feature is enabled
---
nimble/host/src/ble_hs_startup.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/nimble/host/src/ble_hs_startup.c b/nimble/host/src/ble_hs_startup.c
index 0843671b..7509fd5e 100644
--- a/nimble/host/src/ble_hs_startup.c
+++ b/nimble/host/src/ble_hs_startup.c
@@ -250,6 +250,17 @@ ble_hs_startup_le_set_evmask_tx(void)
}
#endif
+#if MYNEWT_VAL(BLE_POWER_CONTROL)
+ if (version >= BLE_HCI_VER_BCS_5_2) {
+ /**
+ * Enable the following LE events:
+ * 0x0000000080000000 LE Path Loss Threshold event
+ * 0x0000000100000000 LE Transmit Power Reporting event
+ */
+ mask |= 0x0000000180000000;
+ }
+#endif
+
cmd.event_mask = htole64(mask);
rc = ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE,