diff --git a/include/bluetooth/gatt.h b/include/bluetooth/gatt.h index cda78ee5864..44798755fb3 100644 --- a/include/bluetooth/gatt.h +++ b/include/bluetooth/gatt.h @@ -293,7 +293,7 @@ int bt_gatt_service_register(struct bt_gatt_service *svc); * * @return 0 in case of success or negative value in case of error. */ -int bt_gatt_unregister_service(struct bt_gatt_service *svc); +int bt_gatt_service_unregister(struct bt_gatt_service *svc); enum { BT_GATT_ITER_STOP = 0, diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index 4f0c96cb361..0e19366c246 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -194,7 +194,7 @@ int bt_gatt_service_register(struct bt_gatt_service *svc) return 0; } -int bt_gatt_unregister_service(struct bt_gatt_service *svc) +int bt_gatt_service_unregister(struct bt_gatt_service *svc) { __ASSERT(svc, "invalid parameters\n"); diff --git a/subsys/bluetooth/shell/gatt.c b/subsys/bluetooth/shell/gatt.c index 82f77ee8496..e3c090f08ea 100644 --- a/subsys/bluetooth/shell/gatt.c +++ b/subsys/bluetooth/shell/gatt.c @@ -613,7 +613,7 @@ int cmd_gatt_register_test_svc(int argc, char *argv[]) int cmd_gatt_unregister_test_svc(int argc, char *argv[]) { - bt_gatt_unregister_service(&vnd_svc); + bt_gatt_service_unregister(&vnd_svc); printk("Unregistering test vendor service\n");