From 6abfab08d49ffd5cc6c9751c4792f4eb7bd0c857 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 7 Nov 2017 14:16:05 +0200 Subject: [PATCH] Bluetooth: Mesh: Fix not including RSSI into network RX context The RSSI was supposed to be stored in the net_rx struct. Signed-off-by: Johan Hedberg --- subsys/bluetooth/host/mesh/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/mesh/net.c b/subsys/bluetooth/host/mesh/net.c index 5de86592410..c2a0d8d91d7 100644 --- a/subsys/bluetooth/host/mesh/net.c +++ b/subsys/bluetooth/host/mesh/net.c @@ -1167,7 +1167,7 @@ void bt_mesh_net_recv(struct net_buf_simple *data, s8_t rssi, enum bt_mesh_net_if net_if) { struct net_buf_simple *buf = NET_BUF_SIMPLE(29); - struct bt_mesh_net_rx rx; + struct bt_mesh_net_rx rx = { .rssi = rssi }; BT_DBG("rssi %d net_if %u", rssi, net_if);