Skip to content

Commit 1b65fd0

Browse files
LingaoMjhedberg
authored andcommitted
Bluetooth: 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. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
1 parent 084574b commit 1b65fd0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

subsys/bluetooth/mesh/subnet.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,6 @@ bool bt_mesh_net_cred_find(struct bt_mesh_net_rx *rx, struct net_buf_simple *in,
620620
for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) {
621621
struct bt_mesh_friend *frnd = &bt_mesh.frnd[i];
622622

623-
if (!frnd->established) {
624-
continue;
625-
}
626-
627623
if (!frnd->subnet) {
628624
continue;
629625
}

0 commit comments

Comments
 (0)