fix(ble_mesh): resolve C++ compilation issue in net.h

Closes https://github.com/espressif/esp-idf/issues/17868


(cherry picked from commit 7ae9d8deb6)

Co-authored-by: luoxu <luoxu@espressif.com>
This commit is contained in:
Luo Xu
2026-01-05 00:05:42 +08:00
committed by BLE BOT
parent f19e48ad97
commit 6fea5c66ed
+2 -1
View File
@@ -472,7 +472,8 @@ void bt_mesh_generic_net_recv(struct net_buf_simple *data,
static inline void bt_mesh_net_recv(struct net_buf_simple *data, int8_t rssi,
enum bt_mesh_net_if net_if)
{
struct bt_mesh_net_rx rx = { .ctx.recv_rssi = rssi };
struct bt_mesh_net_rx rx = {0};
rx.ctx.recv_rssi = rssi;
#if CONFIG_BLE_MESH_EXT_ADV
rx.ctx.enh.adv_cfg_used = false;
rx.ctx.enh.ext_adv_cfg_used = false;