From 5b2b733c1fedfc06c748d4dff85ce82a3cfabb81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kopy=C5=9Bci=C5=84ski?= Date: Tue, 15 Dec 2020 11:46:16 +0100 Subject: [PATCH] mesh: Fix Friend node estalished Since first poll request send by lpn use friend security credentials, so, friend nodes should be able to decrypt with friend security, even if they have not yet established a friendship. This is port of 1b65fd066f66596177fbce2f60f0deb2697bb2cb --- nimble/host/mesh/src/subnet.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nimble/host/mesh/src/subnet.c b/nimble/host/mesh/src/subnet.c index 15e7a7711..ed093aecd 100644 --- a/nimble/host/mesh/src/subnet.c +++ b/nimble/host/mesh/src/subnet.c @@ -621,10 +621,6 @@ bool bt_mesh_net_cred_find(struct bt_mesh_net_rx *rx, struct os_mbuf *in, for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) { struct bt_mesh_friend *frnd = &bt_mesh.frnd[i]; - if (!frnd->established) { - continue; - } - if (!frnd->subnet) { continue; }