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 <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2019-09-09 11:42:58 +03:00 committed by Johan Hedberg
commit c333e8e8a4

View file

@ -517,8 +517,7 @@ bool bt_mesh_fixed_group_match(u16_t addr)
case BT_MESH_ADDR_ALL_NODES: case BT_MESH_ADDR_ALL_NODES:
return true; return true;
case BT_MESH_ADDR_PROXIES: case BT_MESH_ADDR_PROXIES:
/* TODO: Proxy not yet supported */ return (bt_mesh_gatt_proxy_get() == BT_MESH_GATT_PROXY_ENABLED);
return false;
case BT_MESH_ADDR_FRIENDS: case BT_MESH_ADDR_FRIENDS:
return (bt_mesh_friend_get() == BT_MESH_FRIEND_ENABLED); return (bt_mesh_friend_get() == BT_MESH_FRIEND_ENABLED);
case BT_MESH_ADDR_RELAYS: case BT_MESH_ADDR_RELAYS: