Enable the default connectable mode for the commom profile 15/267115/1 accepted/tizen/6.5/unified/20211129.042144 submit/tizen_6.5/20211126.003138
authordh79pyun <dh79.pyun@samsung.com>
Thu, 25 Nov 2021 04:29:08 +0000 (13:29 +0900)
committerdh79pyun <dh79.pyun@samsung.com>
Thu, 25 Nov 2021 22:26:03 +0000 (07:26 +0900)
Change-Id: Id7f4e80608d59e7df9dc0f6f3f6ee0ca71a5d017
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
bt-service/services/adapter/bt-service-core-adapter.c
include/bt-internal-types.h

index 65e74ee8f433b98f2aec578f3f8854af4c70972e..c86616a3c034f47c969ec3a41b211698b534071a 100644 (file)
@@ -1482,7 +1482,7 @@ static gboolean __bt_adapter_post_set_enabled(gpointer user_data)
 
        BT_INFO("__bt_adapter_post_set_enabled>>");
 
-       if (TIZEN_PROFILE_IOT) {
+       if (TIZEN_PROFILE_IOT || TIZEN_PROFILE_COMMON) {
                /* Tizen IOT Speaker - The default visible mode is off */
                if (BLUETOOTH_ERROR_NONE != _bt_set_discoverable_mode(
                                BLUETOOTH_DISCOVERABLE_MODE_CONNECTABLE, 0))
index 58e7b951ae39cc2ee14132a392a4fc3251707229..b81a3065ee7fde5f6fc1e7d37713a2cba9f5d32d 100644 (file)
@@ -910,6 +910,7 @@ static inline bool get_tizen_feature_supported(char *feature)
 #define TIZEN_PROFILE_TV (get_tizen_profile() == _PROFILE_TV)
 #define TIZEN_PROFILE_MOBILE (get_tizen_profile() == _PROFILE_MOBILE)
 #define TIZEN_PROFILE_IOT (get_tizen_profile() == _PROFILE_IOT)
+#define TIZEN_PROFILE_COMMON (get_tizen_profile() == _PROFILE_COMMON)
 
 #define TIZEN_FEATURE_NETWORK_TETHERING_ENABLE (get_tizen_profile() & (_PROFILE_MOBILE))
 #define TIZEN_FEATURE_TELEPHONY_ENABLED (get_tizen_profile() & (_PROFILE_MOBILE))