From 6dbf5252bb6b45789348a447de9c175285d69c2b Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 9 Sep 2019 11:42:58 +0300 Subject: [PATCH] Bluetooth: Mesh: Fix matching for "All Proxies" group address The bt_mesh_fixed_group_match() function is intended to match the various well-known group addresses, however it was never updated when Proxy support was added. Fixes #19015 Signed-off-by: Johan Hedberg --- subsys/bluetooth/mesh/access.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/bluetooth/mesh/access.c b/subsys/bluetooth/mesh/access.c index ca74ab716d1a..cfcf98586036 100644 --- a/subsys/bluetooth/mesh/access.c +++ b/subsys/bluetooth/mesh/access.c @@ -517,8 +517,7 @@ bool bt_mesh_fixed_group_match(u16_t addr) case BT_MESH_ADDR_ALL_NODES: return true; case BT_MESH_ADDR_PROXIES: - /* TODO: Proxy not yet supported */ - return false; + return (bt_mesh_gatt_proxy_get() == BT_MESH_GATT_PROXY_ENABLED); case BT_MESH_ADDR_FRIENDS: return (bt_mesh_friend_get() == BT_MESH_FRIEND_ENABLED); case BT_MESH_ADDR_RELAYS: