Fix: GATT connect Failure if Adv. enabled on slot 0 72/242172/2
authorhimanshu <h.himanshu@samsung.com>
Mon, 24 Aug 2020 17:11:05 +0000 (22:41 +0530)
committerhimanshu <h.himanshu@samsung.com>
Tue, 25 Aug 2020 12:55:53 +0000 (18:25 +0530)
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 <h.himanshu@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt-client.c

index 2ce0c67..219e80b 100644 (file)
@@ -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  */