Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions subsys/bluetooth/mesh/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,10 +924,13 @@ void bt_mesh_net_recv(struct net_buf_simple *data, int8_t rssi,
}

/* Relay if this was a group/virtual address, or if the destination
* was neither a local element nor an LPN we're Friends for.
* was neither a local element nor an LPN we're Friends for, and
* device is not in Friendship as the Low Power node or the message is not encrypted using
* friendship security credentials.
*/
if (!BT_MESH_ADDR_IS_UNICAST(rx.ctx.recv_dst) ||
(!rx.local_match && !rx.friend_match)) {
if ((!BT_MESH_ADDR_IS_UNICAST(rx.ctx.recv_dst) ||
(!rx.local_match && !rx.friend_match)) &&
(!bt_mesh_lpn_established() || !rx.friend_cred)) {
net_buf_simple_restore(&buf, &state);
bt_mesh_net_relay(&buf, &rx, false);
}
Expand Down
Loading