Bluetooth: Mesh: Fixes Friend Queue store message
If the SRC field of the received message is a unicast address of an element of the Low Power node, then the message shall not be stored in the Friend Queue. Otherwise, lpn will discard this message, eventually it breaks friendship. Fixes: #30657 Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
eedfb30b62
commit
5b11c053ef
1 changed files with 5 additions and 0 deletions
|
@ -1620,6 +1620,11 @@ void bt_mesh_friend_enqueue_rx(struct bt_mesh_net_rx *rx,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (friend_lpn_matches(frnd, rx->sub->net_idx,
|
||||
rx->ctx.addr)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!friend_queue_prepare_space(frnd, rx->ctx.addr, seq_auth,
|
||||
seg_count)) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue