1 /*
2  * Copyright (c) 2017 Intel Corporation
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #if defined(CONFIG_BT_MESH_DEBUG_USE_ID_ADDR)
8 #define ADV_OPT_USE_IDENTITY BT_LE_ADV_OPT_USE_IDENTITY
9 #else
10 #define ADV_OPT_USE_IDENTITY 0
11 #endif
12 
13 #define ADV_SLOW_INT                                                           \
14 	.interval_min = BT_GAP_ADV_SLOW_INT_MIN,                               \
15 	.interval_max = BT_GAP_ADV_SLOW_INT_MAX
16 
17 #define ADV_FAST_INT                                                           \
18 	.interval_min = BT_GAP_ADV_FAST_INT_MIN_2,                             \
19 	.interval_max = BT_GAP_ADV_FAST_INT_MAX_2
20 
21 #define BT_MESH_ID_TYPE_NET	  0x00
22 #define BT_MESH_ID_TYPE_NODE	  0x01
23 #define BT_MESH_ID_TYPE_PRIV_NET  0x02
24 #define BT_MESH_ID_TYPE_PRIV_NODE 0x03
25 
26 int bt_mesh_proxy_gatt_enable(void);
27 int bt_mesh_proxy_gatt_disable(void);
28 void bt_mesh_proxy_gatt_disconnect(void);
29 
30 void bt_mesh_proxy_beacon_send(struct bt_mesh_subnet *sub);
31 
32 int bt_mesh_proxy_adv_start(void);
33 
34 void bt_mesh_proxy_identity_start(struct bt_mesh_subnet *sub, bool private);
35 void bt_mesh_proxy_identity_stop(struct bt_mesh_subnet *sub);
36 
37 bool bt_mesh_proxy_relay(struct bt_mesh_adv *adv, uint16_t dst);
38 void bt_mesh_proxy_addr_add(struct net_buf_simple *buf, uint16_t addr);
39 uint8_t bt_mesh_proxy_srv_connected_cnt(void);
40