Bluetooth: Mesh: Add _srv
suffix for pb_gatt_srv
Add `_srv` suffix for pb_gatt_srv. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
2ead5725b1
commit
3e4cf9b693
|
@ -221,7 +221,7 @@ int bt_mesh_adv_gatt_send(void)
|
|||
}
|
||||
} else if (IS_ENABLED(CONFIG_BT_MESH_PB_GATT)) {
|
||||
BT_DBG("PB-GATT Advertising");
|
||||
return bt_mesh_pb_gatt_adv_start();
|
||||
return bt_mesh_pb_gatt_srv_adv_start();
|
||||
}
|
||||
|
||||
return -ENOTSUP;
|
||||
|
|
|
@ -382,7 +382,7 @@ int bt_mesh_start(void)
|
|||
if (!IS_ENABLED(CONFIG_BT_MESH_PROV) || !bt_mesh_prov_active() ||
|
||||
bt_mesh_prov_link.bearer->type == BT_MESH_PROV_ADV) {
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_PB_GATT)) {
|
||||
(void)bt_mesh_pb_gatt_disable();
|
||||
(void)bt_mesh_pb_gatt_srv_disable();
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY)) {
|
||||
|
|
|
@ -188,7 +188,7 @@ static int link_accept(const struct prov_bearer_cb *cb, void *cb_data)
|
|||
return err;
|
||||
}
|
||||
|
||||
(void)bt_mesh_pb_gatt_enable();
|
||||
(void)bt_mesh_pb_gatt_srv_enable();
|
||||
bt_mesh_adv_gatt_update();
|
||||
|
||||
link.cb = cb;
|
||||
|
|
|
@ -124,7 +124,7 @@ static void gatt_disconnected(struct bt_conn *conn, uint8_t reason)
|
|||
bt_mesh_pb_gatt_close(conn);
|
||||
|
||||
if (bt_mesh_is_provisioned()) {
|
||||
(void)bt_mesh_pb_gatt_disable();
|
||||
(void)bt_mesh_pb_gatt_srv_disable();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ static struct bt_gatt_attr prov_attrs[] = {
|
|||
|
||||
static struct bt_gatt_service prov_svc = BT_GATT_SERVICE(prov_attrs);
|
||||
|
||||
int bt_mesh_pb_gatt_enable(void)
|
||||
int bt_mesh_pb_gatt_srv_enable(void)
|
||||
{
|
||||
BT_DBG("");
|
||||
|
||||
|
@ -193,7 +193,7 @@ int bt_mesh_pb_gatt_enable(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int bt_mesh_pb_gatt_disable(void)
|
||||
int bt_mesh_pb_gatt_srv_disable(void)
|
||||
{
|
||||
BT_DBG("");
|
||||
|
||||
|
@ -263,7 +263,7 @@ static int gatt_send(struct bt_conn *conn,
|
|||
return bt_gatt_notify_cb(conn, ¶ms);
|
||||
}
|
||||
|
||||
int bt_mesh_pb_gatt_adv_start(void)
|
||||
int bt_mesh_pb_gatt_srv_adv_start(void)
|
||||
{
|
||||
BT_DBG("");
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
#include <bluetooth/gatt.h>
|
||||
|
||||
int bt_mesh_pb_gatt_enable(void);
|
||||
int bt_mesh_pb_gatt_disable(void);
|
||||
int bt_mesh_pb_gatt_srv_enable(void);
|
||||
int bt_mesh_pb_gatt_srv_disable(void);
|
||||
|
||||
int bt_mesh_pb_gatt_adv_start(void);
|
||||
int bt_mesh_pb_gatt_srv_adv_start(void);
|
||||
|
||||
#endif /* ZEPHYR_SUBSYS_BLUETOOTH_MESH_PB_GATT_SRV_H_ */
|
||||
|
|
|
@ -650,7 +650,7 @@ int bt_mesh_prov_disable(bt_mesh_prov_bearer_t bearers)
|
|||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_PB_GATT) &&
|
||||
(bearers & BT_MESH_PROV_GATT)) {
|
||||
(void)bt_mesh_pb_gatt_disable();
|
||||
(void)bt_mesh_pb_gatt_srv_disable();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -73,7 +73,7 @@ static int mesh_commit(void)
|
|||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_PB_GATT)) {
|
||||
(void)bt_mesh_pb_gatt_disable();
|
||||
(void)bt_mesh_pb_gatt_srv_disable();
|
||||
}
|
||||
|
||||
bt_mesh_net_settings_commit();
|
||||
|
|
Loading…
Reference in a new issue