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 2025/02/25 15:30:32 UTC
(mynewt-nimble) branch master updated (f1379c78a -> 890be280a)
This is an automated email from the ASF dual-hosted git repository.
andk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
from f1379c78a nimble/ll: Fix HCI Number Of Completed Packets event
new c6b1ea9ef nimble/ll: Fix DLE without coded phy
new f9161f375 nimble/ll: Fix connection update HCI event
new 890be280a nimble/ll: Update chanmap in BIGInfo after completed chanmap update
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
nimble/controller/include/controller/ble_ll_conn.h | 1 +
nimble/controller/src/ble_ll_conn.c | 12 ++++++++----
nimble/controller/src/ble_ll_conn_hci.c | 3 +++
nimble/controller/src/ble_ll_iso_big.c | 17 +++++++++++++++--
4 files changed, 27 insertions(+), 6 deletions(-)
(mynewt-nimble) 01/03: nimble/ll: Fix DLE without coded phy
Posted by an...@apache.org.
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 c6b1ea9efb7220341e415d2277a2629fbe0a8b39
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Feb 17 18:36:40 2025 +0100
nimble/ll: Fix DLE without coded phy
Requested max time should be limited to 2120us if LL doesn't support
coded phy.
---
nimble/controller/src/ble_ll_conn.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c
index 90d5a8cac..1864f8f36 100644
--- a/nimble/controller/src/ble_ll_conn.c
+++ b/nimble/controller/src/ble_ll_conn.c
@@ -1838,6 +1838,9 @@ ble_ll_conn_set_data_len(struct ble_ll_conn_sm *connsm,
tx_time = MIN(tx_time, BLE_LL_CONN_SUPP_TIME_MAX_UNCODED);
rx_time = MIN(rx_time, BLE_LL_CONN_SUPP_TIME_MAX_UNCODED);
}
+#else
+ tx_time = MIN(tx_time, BLE_LL_CONN_SUPP_TIME_MAX_UNCODED);
+ rx_time = MIN(rx_time, BLE_LL_CONN_SUPP_TIME_MAX_UNCODED);
#endif
if (connsm->max_tx_time != tx_time) {
(mynewt-nimble) 02/03: nimble/ll: Fix connection update HCI event
Posted by an...@apache.org.
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 f9161f375565c44df7362f8ed53b0b74ab0d9813
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Feb 17 19:06:33 2025 +0100
nimble/ll: Fix connection update HCI event
HCI LE Connection Update Complete event shall only be sent if this is a
result of request issued by host or if any connection parameter has
changed. We should not send the event if this was just an anchor move
requested by peripheral.
---
nimble/controller/include/controller/ble_ll_conn.h | 1 +
nimble/controller/src/ble_ll_conn.c | 9 +++++----
nimble/controller/src/ble_ll_conn_hci.c | 3 +++
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/nimble/controller/include/controller/ble_ll_conn.h b/nimble/controller/include/controller/ble_ll_conn.h
index 347f4653e..2b0c606dd 100644
--- a/nimble/controller/include/controller/ble_ll_conn.h
+++ b/nimble/controller/include/controller/ble_ll_conn.h
@@ -119,6 +119,7 @@ struct ble_ll_conn_sm_flags {
uint32_t terminate_ind_rxd_acked : 1;
uint32_t conn_update_sched : 1;
uint32_t conn_update_use_cp : 1;
+ uint32_t conn_update_host_initd : 1;
uint32_t conn_update_host_w4reply : 1;
uint32_t conn_update_host_w4event : 1;
uint32_t chanmap_update_sched : 1;
diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c
index 1864f8f36..52446b647 100644
--- a/nimble/controller/src/ble_ll_conn.c
+++ b/nimble/controller/src/ble_ll_conn.c
@@ -2542,15 +2542,16 @@ ble_ll_conn_next_event(struct ble_ll_conn_sm *connsm)
if (connsm->flags.conn_update_sched &&
(connsm->event_cntr == connsm->conn_update_req.instant)) {
- /* Set flag so we send connection update event */
+ /* Set flag to send event to host if request was issued by host or
+ * any of parameters changed (i.e. skip on anchor moves)
+ */
upd = &connsm->conn_update_req;
- if (CONN_IS_CENTRAL(connsm) ||
- (CONN_IS_PERIPHERAL(connsm) &&
- IS_PENDING_CTRL_PROC(connsm, BLE_LL_CTRL_PROC_CONN_PARAM_REQ)) ||
+ if (connsm->flags.conn_update_host_initd ||
(connsm->conn_itvl != upd->interval) ||
(connsm->periph_latency != upd->latency) ||
(connsm->supervision_tmo != upd->timeout)) {
connsm->flags.conn_update_host_w4event = 1;
+ connsm->flags.conn_update_host_initd = 0;
}
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_ENHANCED_CONN_UPDATE)
diff --git a/nimble/controller/src/ble_ll_conn_hci.c b/nimble/controller/src/ble_ll_conn_hci.c
index fae4b31a9..158464ed5 100644
--- a/nimble/controller/src/ble_ll_conn_hci.c
+++ b/nimble/controller/src/ble_ll_conn_hci.c
@@ -1134,6 +1134,9 @@ ble_ll_conn_hci_update(const uint8_t *cmdbuf, uint8_t len)
connsm->css_slot_idx_pending = connsm->css_slot_idx;
#endif
+ /* Mark procedure as host initiated */
+ connsm->flags.conn_update_host_initd = 1;
+
/* Start the control procedure */
ble_ll_ctrl_proc_start(connsm, ctrl_proc, NULL);
}
(mynewt-nimble) 03/03: nimble/ll: Update chanmap in BIGInfo after completed chanmap update
Posted by an...@apache.org.
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 890be280a318b6e447acaa929ff22a2c713044e4
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Thu Feb 20 14:00:28 2025 +0100
nimble/ll: Update chanmap in BIGInfo after completed chanmap update
Channel map needs to be update in BIGInfo after change since BIGInfo is
precalculated and not generated before each tx.
---
nimble/controller/src/ble_ll_iso_big.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/nimble/controller/src/ble_ll_iso_big.c b/nimble/controller/src/ble_ll_iso_big.c
index de895b1ea..1b4e50d36 100644
--- a/nimble/controller/src/ble_ll_iso_big.c
+++ b/nimble/controller/src/ble_ll_iso_big.c
@@ -255,6 +255,18 @@ ble_ll_iso_big_last_tx_timestamp_get(struct ble_ll_iso_bis *bis,
return 0;
}
+static void
+ble_ll_iso_big_biginfo_chanmap_update(struct ble_ll_iso_big *big)
+{
+ uint8_t *buf;
+
+ buf = &big->biginfo[23];
+
+ /* chm, phy */
+ memcpy(buf, big->chan_map, 5);
+ buf[4] |= (big->phy - 1) << 5;
+}
+
static void
ble_ll_iso_big_biginfo_calc(struct ble_ll_iso_big *big, uint32_t seed_aa)
{
@@ -296,8 +308,7 @@ ble_ll_iso_big_biginfo_calc(struct ble_ll_iso_big *big, uint32_t seed_aa)
/* chm, phy */
memcpy(buf, big->chan_map, 5);
- buf[4] |= (big->phy - 1) << 5;
- buf += 5;
+ ble_ll_iso_big_biginfo_chanmap_update(big);
/* bis_payload_cnt, framing */
memset(buf, 0x00, 5);
@@ -437,6 +448,8 @@ ble_ll_iso_big_chan_map_update_complete(struct ble_ll_iso_big *big)
{
memcpy(big->chan_map, big->chan_map_new, BLE_LL_CHAN_MAP_LEN);
big->chan_map_used = ble_ll_utils_chan_map_used_get(big->chan_map);
+
+ ble_ll_iso_big_biginfo_chanmap_update(big);
}
static void