From 29a722296f6de31cb96e47f8771dac7319fdb6dd Mon Sep 17 00:00:00 2001 From: luoxu Date: Wed, 29 Oct 2025 17:03:51 +0800 Subject: [PATCH] fix(ble_mesh): fixed incorrect rpl behavior in transport enh --- components/bt/esp_ble_mesh/core/transport.enh.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/bt/esp_ble_mesh/core/transport.enh.c b/components/bt/esp_ble_mesh/core/transport.enh.c index 318b21bb09..89d8bc3672 100644 --- a/components/bt/esp_ble_mesh/core/transport.enh.c +++ b/components/bt/esp_ble_mesh/core/transport.enh.c @@ -2411,10 +2411,6 @@ found_rx: } } - if (rpl) { - bt_mesh_update_rpl(rpl, net_rx); - } - /* Mark segment as received */ rx->block |= BIT(seg_o); @@ -2425,6 +2421,10 @@ found_rx: BT_DBG("Complete SDU"); + if (rpl) { + bt_mesh_update_rpl(rpl, net_rx); + } + *pdu_type = BLE_MESH_FRIEND_PDU_COMPLETE; /* Stop SAR Discard timer when processing result is Last Segment */