Bluetooth: Mesh: Proxy forwards ALL_NODES addr
Unless explicitly blacklisted, the Proxy node will forward all messages for the ALL_NODES address to the GATT proxy client. Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
This commit is contained in:
parent
d12c53f89f
commit
f7d9af8cb2
1 changed files with 12 additions and 10 deletions
|
@ -862,16 +862,6 @@ static bool client_filter_match(struct bt_mesh_proxy_client *client,
|
|||
|
||||
BT_DBG("filter_type %u addr 0x%04x", client->filter_type, addr);
|
||||
|
||||
if (client->filter_type == WHITELIST) {
|
||||
for (i = 0; i < ARRAY_SIZE(client->filter); i++) {
|
||||
if (client->filter[i] == addr) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (client->filter_type == BLACKLIST) {
|
||||
for (i = 0; i < ARRAY_SIZE(client->filter); i++) {
|
||||
if (client->filter[i] == addr) {
|
||||
|
@ -882,6 +872,18 @@ static bool client_filter_match(struct bt_mesh_proxy_client *client,
|
|||
return true;
|
||||
}
|
||||
|
||||
if (addr == BT_MESH_ADDR_ALL_NODES) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (client->filter_type == WHITELIST) {
|
||||
for (i = 0; i < ARRAY_SIZE(client->filter); i++) {
|
||||
if (client->filter[i] == addr) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue