Enable Multi ADV only for wearable profile 25/265225/1 accepted/tizen/unified/20211102.024808 submit/tizen/20211101.051752
authordh79pyun <dh79.pyun@samsung.com>
Wed, 13 Oct 2021 02:31:54 +0000 (11:31 +0900)
committerdh79pyun <dh79.pyun@samsung.com>
Wed, 13 Oct 2021 02:31:54 +0000 (11:31 +0900)
Change-Id: Ieeec8d5f2278e0cc72e613c81f0725da3a8bab54
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
profile.h
src/adapter_le_vsc_features.c

index 91236df..9903191 100755 (executable)
--- 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)
index 5d0aee4..cf931dc 100755 (executable)
@@ -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;
 }