From: dh79pyun Date: Wed, 13 Oct 2021 02:31:54 +0000 (+0900) Subject: Enable Multi ADV only for wearable profile X-Git-Tag: submit/tizen/20211101.051752^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4380bfd7031d48afbb53f8c01213b50a31e4270;p=platform%2Fupstream%2Fbluez.git Enable Multi ADV only for wearable profile Change-Id: Ieeec8d5f2278e0cc72e613c81f0725da3a8bab54 Signed-off-by: dh79pyun --- diff --git a/profile.h b/profile.h index 91236df5..9903191e 100755 --- a/profile.h +++ b/profile.h @@ -210,6 +210,7 @@ static inline tizen_model_t _get_tizen_model(void) } #define TIZEN_FEATURE_BLUEZ_BRCM_CHIP ((_get_tizen_profile()) == TIZEN_PROFILE_IVI) +#define TIZEN_FEATURE_BLUEZ_WEARABLE ((_get_tizen_profile()) == TIZEN_PROFILE_WEARABLE) #define TIZEN_FEATURE_BLUEZ_SMS_ONLY ((_get_tizen_profile()) == TIZEN_PROFILE_WEARABLE) #define TIZEN_FEATURE_BLUEZ_BRCM_QOS ((_get_tizen_profile()) == TIZEN_PROFILE_WEARABLE) #define TIZEN_FEATURE_BLUEZ_ROLE_CHANGE ((_get_tizen_profile()) == TIZEN_PROFILE_WEARABLE) diff --git a/src/adapter_le_vsc_features.c b/src/adapter_le_vsc_features.c index 5d0aee46..cf931dc7 100755 --- a/src/adapter_le_vsc_features.c +++ b/src/adapter_le_vsc_features.c @@ -6,6 +6,7 @@ #include "adapter.h" #include "eir.h" +#include "../profile.h" #include "adapter_le_vsc_features.h" @@ -116,6 +117,9 @@ gboolean adapter_le_read_ble_feature_info(void) DBG("onlost_follow [%d]", ble_vsc_cb.onlost_follow); DBG("================================="); + if (!TIZEN_FEATURE_BLUEZ_WEARABLE) + ble_vsc_cb.adv_inst_max = 1; + return TRUE; }