You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2021/10/07 09:43:25 UTC
[mynewt-nimble] 02/02: nimble/ll: Allow 2M params as fallback for
ext conn create
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit a892c8f78952907c88b9ff714a446a73348cef5c
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Tue Oct 5 17:21:39 2021 +0200
nimble/ll: Allow 2M params as fallback for ext conn create
We ignore 2M values only for scanning since we do not scan on 2M when
ext conn create is pending, but there's nothing wrong in using those
parameters as fallback in case we established connection on phy that
was not in phy mask.
---
nimble/controller/src/ble_ll_conn_hci.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nimble/controller/src/ble_ll_conn_hci.c b/nimble/controller/src/ble_ll_conn_hci.c
index aa6de54..fe384c4 100644
--- a/nimble/controller/src/ble_ll_conn_hci.c
+++ b/nimble/controller/src/ble_ll_conn_hci.c
@@ -707,6 +707,9 @@ ble_ll_ext_conn_create(const uint8_t *cmdbuf, uint8_t len)
ble_ll_conn_itvl_to_ticks(conn_itvl_max, &hcc.params[1].conn_itvl_ticks,
&hcc.params[1].conn_itvl_usecs);
+ if (!fallback_params) {
+ fallback_params = &hcc.params[1];
+ }
params++;
}
#endif