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
commit ccfc8bff3ee59f97ad9da85e42af431348dce2a2 Author: Szymon Janc <[email protected]> AuthorDate: Tue Aug 5 16:34:59 2025 +0200 nimble/host: Fix typo in ble_l2cap_sig_rx_reject Transaction ID was used instead of procedure opcode which resulted in not calling application callback on second and subsequent rejection. --- nimble/host/src/ble_l2cap_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/src/ble_l2cap_sig.c b/nimble/host/src/ble_l2cap_sig.c index f360ad708..8a2d1922c 100644 --- a/nimble/host/src/ble_l2cap_sig.c +++ b/nimble/host/src/ble_l2cap_sig.c @@ -1842,7 +1842,7 @@ ble_l2cap_sig_rx_reject(uint16_t conn_handle, return 0; } - switch (proc->id) { + switch (proc->op) { #if MYNEWT_VAL(BLE_L2CAP_COC_MAX_NUM) != 0 case BLE_L2CAP_SIG_PROC_OP_CONNECT: ble_l2cap_sig_coc_connect_cb(proc, BLE_HS_EREJECT);
