Enable the default connectable mode for the commom profile 76/267076/1 accepted/tizen/unified/20211126.111806 accepted/tizen/unified/20211130.125450 submit/tizen/20211124.060921 submit/tizen/20211129.075122
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 04:29:08 +0000 (13:29 +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 4d49d18..5c7e7ee 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 da1cb75..5026c9b 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))