From: dh79pyun Date: Fri, 10 Dec 2021 04:57:02 +0000 (+0900) Subject: Support the multi-advertisement for the robot reference X-Git-Tag: accepted/tizen/unified/20211210.115136^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaf761b1eee0ceb57319d2782c60831e6eb1544c;p=platform%2Fupstream%2Fbluez.git Support the multi-advertisement for the robot reference Change-Id: Id45295d76f7b8afceadf323378cc0fb72fbf401f Signed-off-by: dh79pyun --- diff --git a/profile.h b/profile.h index 9903191..3df75a5 100755 --- a/profile.h +++ b/profile.h @@ -51,6 +51,7 @@ typedef enum { TIZEN_MODEL_TW2 = 0x10, TIZEN_MODEL_TW3 = 0x20, TIZEN_MODEL_RPI3 = 0x40, + TIZEN_MODEL_ROBOT = 0x80, } tizen_model_t; static tizen_profile_t profile = TIZEN_PROFILE_UNKNOWN; @@ -201,6 +202,8 @@ static inline tizen_model_t _get_tizen_model(void) model = TIZEN_MODEL_TW3; else if (!strcasecmp(model_name, "rpi3")) model = TIZEN_MODEL_RPI3; + else if (!strcasecmp(model_name, "gems") || !strncasecmp(model_name, "ServingBot", 10)) + model = TIZEN_MODEL_ROBOT; else model = TIZEN_MODEL_COMMON; @@ -218,6 +221,7 @@ static inline tizen_model_t _get_tizen_model(void) #define TIZEN_FEATURE_BLUEZ_SPRD_QOS ((_get_tizen_model()) == TIZEN_MODEL_TM1) #define TIZEN_FEATURE_BLUEZ_SPRD_PAGE_SCAN ((_get_tizen_model()) == TIZEN_MODEL_TM1) #define TIZEN_FEATURE_BLUEZ_SPEAKER_REFERENCE ((_get_tizen_model()) == TIZEN_MODEL_RPI3 && (_get_tizen_profile()) == TIZEN_PROFILE_COMMON) +#define TIZEN_FEATURE_ROBOT_REFERENCE ((_get_tizen_model()) == TIZEN_MODEL_ROBOT) #endif /* __TIZEN_PROFILE_H__ */ diff --git a/src/adapter_le_vsc_features.c b/src/adapter_le_vsc_features.c index cf931dc..dbfe015 100755 --- a/src/adapter_le_vsc_features.c +++ b/src/adapter_le_vsc_features.c @@ -117,7 +117,7 @@ gboolean adapter_le_read_ble_feature_info(void) DBG("onlost_follow [%d]", ble_vsc_cb.onlost_follow); DBG("================================="); - if (!TIZEN_FEATURE_BLUEZ_WEARABLE) + if (!TIZEN_FEATURE_BLUEZ_WEARABLE && !TIZEN_FEATURE_ROBOT_REFERENCE) ble_vsc_cb.adv_inst_max = 1; return TRUE;