Use vendor adv command only when multipled adv is supported
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-gatt-server.c
index c46a45e..447da05 100644 (file)
@@ -1726,7 +1726,7 @@ static bt_status_t gatt_server_register_app(bt_uuid_t *uuid)
        hal_register_server_data *user_data = g_malloc0(sizeof(hal_register_server_data));
 
        /* Check if slot available */
-       server_if = _bt_hal_get_available_adv_slot_id(uuid);
+       server_if = _bt_hal_get_available_adv_slot_id(uuid, FALSE);
 
        if (server_if == -1) {
                ERR("Allocation of server instance failed");