From 806e4173ab5ff5602b97e08399f458e913195141 Mon Sep 17 00:00:00 2001 From: himanshu Date: Mon, 24 Aug 2020 22:41:05 +0530 Subject: [PATCH 1/1] Fix: GATT connect Failure if Adv. enabled on slot 0 This patch fix the issue of gatt connect call, failure if advertising is running on slot 0. If advertising is running on slot 0, the kernel proceeds to initiate connection as a slave in form of directed advertising. The advertising should be hold and reinitiated in such case. Change-Id: Id7ba7df82aaabc25da0250b63ebaede5d33a0b96 Signed-off-by: himanshu --- bt-oal/bluez_hal/src/bt-hal-gatt-client.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bt-oal/bluez_hal/src/bt-hal-gatt-client.c b/bt-oal/bluez_hal/src/bt-hal-gatt-client.c index 2ce0c67..219e80b 100644 --- a/bt-oal/bluez_hal/src/bt-hal-gatt-client.c +++ b/bt-oal/bluez_hal/src/bt-hal-gatt-client.c @@ -3712,7 +3712,6 @@ static bt_status_t _bt_hold_current_advertising() if (_bt_hal_is_support_multi_adv() == TRUE) { DBG("VSC adv used"); - return BT_STATUS_SUCCESS; } /* Dependent on Kernel operation. Hold adv to prevent stopping adv on kernel */ -- 2.7.4