Skip to content

Commit c67f64e

Browse files
Johan HedbergAnas Nashif
authored andcommitted
Bluetooth: Mesh: Fix dropping valid proxy configration messages
Proxy configuration messages are allowed (in fact required) to use unassigned addresses, so they should be exempt from this check. Signed-off-by: Johan Hedberg <[email protected]>
1 parent d68d799 commit c67f64e

File tree

1 file changed

+2
-1
lines changed
  • subsys/bluetooth/host/mesh

1 file changed

+2
-1
lines changed

subsys/bluetooth/host/mesh/net.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,8 @@ int bt_mesh_net_decode(struct net_buf_simple *data, enum bt_mesh_net_if net_if,
11251125

11261126
BT_DBG("Decryption successful. Payload len %u", buf->len);
11271127

1128-
if (rx->dst == BT_MESH_ADDR_UNASSIGNED) {
1128+
if (net_if != BT_MESH_NET_IF_PROXY_CFG &&
1129+
rx->dst == BT_MESH_ADDR_UNASSIGNED) {
11291130
BT_ERR("Destination address is unassigned; dropping packet");
11301131
return -EBADMSG;
11311132
}

0 commit comments

Comments
 (0)