This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 628e68562e2d3d55b6651d45a185a17c84018fc3
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Oct 7 18:37:38 2026 +0200

    nimble/host: Fix lookup of EATT bearer for queued PDUs
    
    Queued EATT PDUs were resent with the peer CID (DCID) while
    ble_eatt_tx looks up the bearer by local CID (SCID). If the CIDs
    differed, the lookup failed and the PDU was dropped. Use local CID.
    
    Assisted-by: Claude:claude-opus-5-5
---
 nimble/host/src/ble_eatt.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/nimble/host/src/ble_eatt.c b/nimble/host/src/ble_eatt.c
index 07f6129f6..7ad5c9288 100644
--- a/nimble/host/src/ble_eatt.c
+++ b/nimble/host/src/ble_eatt.c
@@ -163,7 +163,6 @@ ble_eatt_wakeup_cb(struct ble_npl_event *ev)
     struct ble_eatt *eatt;
     struct os_mbuf *txom;
     struct os_mbuf_pkthdr *omp;
-    struct ble_l2cap_chan_info info;
 
     eatt = ble_npl_event_get_arg(ev);
     assert(eatt);
@@ -173,8 +172,7 @@ ble_eatt_wakeup_cb(struct ble_npl_event *ev)
         STAILQ_REMOVE_HEAD(&eatt->eatt_tx_q, omp_next);
 
         txom = OS_MBUF_PKTHDR_TO_MBUF(omp);
-        ble_l2cap_get_chan_info(eatt->chan, &info);
-        ble_eatt_tx(eatt->conn_handle, info.dcid, txom);
+        ble_eatt_tx(eatt->conn_handle, eatt->chan->scid, txom);
     }
 }
 

Reply via email to