fix(ble_mesh): correct long packet segment buffer size calculation

(cherry picked from commit 6d59a91401)

Co-authored-by: luoxu <luoxu@espressif.com>
This commit is contained in:
Luo Xu
2025-11-27 20:03:47 +08:00
committed by BLE BOT
parent 0287fe904b
commit e2566b8759
2 changed files with 4 additions and 4 deletions

View File

@@ -2105,9 +2105,9 @@ void bt_mesh_trans_init(void)
#if CONFIG_BLE_MESH_LONG_PACKET
for (i = 0; i < ARRAY_SIZE(ext_seg_rx); i++) {
k_delayed_work_init(&ext_seg_rx[i].ack_timer, seg_ack);
ext_seg_rx[i].buf.size = CONFIG_BLE_MESH_LONG_PACKET_ADV_LEN;
ext_seg_rx[i].buf.size = BLE_MESH_EXT_RX_SDU_MAX;
ext_seg_rx[i].buf.__buf = (ext_seg_rx_buf_data +
(i * CONFIG_BLE_MESH_LONG_PACKET_ADV_LEN));
(i * BLE_MESH_EXT_RX_SDU_MAX));
ext_seg_rx[i].buf.data = ext_seg_rx[i].buf.__buf;
}
#endif

View File

@@ -2723,9 +2723,9 @@ void bt_mesh_trans_init(void)
#if CONFIG_BLE_MESH_LONG_PACKET
for (i = 0; i < ARRAY_SIZE(ext_seg_rx); i++) {
ext_seg_rx[i].buf.size = CONFIG_BLE_MESH_LONG_PACKET_ADV_LEN;
ext_seg_rx[i].buf.size = BLE_MESH_EXT_RX_SDU_MAX;
ext_seg_rx[i].buf.__buf = (ext_seg_rx_buf_data +
(i * CONFIG_BLE_MESH_LONG_PACKET_ADV_LEN));
(i * BLE_MESH_EXT_RX_SDU_MAX));
ext_seg_rx[i].buf.data = ext_seg_rx[i].buf.__buf;
}
#endif