update adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_gatt.c.

[新需求]: gatt adapter层面向接口适配,移除管理功能

Signed-off-by: yuxpro <weiyuanxin3@huawei.com>
This commit is contained in:
yuxpro 2023-12-24 15:28:28 +00:00 committed by Gitee
parent 7b8354ad9d
commit e697f78cec
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -730,10 +730,7 @@ static bool SetLpParam(const SoftBusLpBroadcastParam *bcParam, const SoftBusLpSc
SoftBusFree(lpParam.rawData.advData);
SoftBusFree(lpParam.rawData.rspData);
DISC_LOGI(DISC_BLE_ADAPTER, "advHandle: %d, ret: %d", bcParam->advHandle, ret);
if (ret != OHOS_BT_STATUS_SUCCESS) {
return false;
}
return true;
return (ret == OHOS_BT_STATUS_SUCCESS) ? true : false;
}
static int32_t GetBroadcastHandle(int32_t advId, int32_t *bcHandle)