Skip to content

Commit 2f9ae20

Browse files
LingaoMnashif
authored andcommitted
[backport v2.7-branch] bluetooth: mesh: Fix incorrect return value
Should be continue when client->type not equal PROXY. Signed-off-by: Lingao Meng <[email protected]>
1 parent 8188fd3 commit 2f9ae20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/bluetooth/mesh/gatt_services.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,8 @@ bool bt_mesh_proxy_relay(struct net_buf *buf, uint16_t dst)
833833
}
834834

835835
if (client->filter_type == PROV) {
836-
BT_ERR("Invalid PDU type for Proxy Client");
837-
return -EINVAL;
836+
BT_WARN("Invalid PDU type for Proxy Client");
837+
continue;
838838
}
839839

840840
/* Proxy PDU sending modifies the original buffer,

0 commit comments

Comments
 (0)