Fix UTC fail issue for tv profile 39/88639/1 accepted/tizen/common/20160920.132128 accepted/tizen/ivi/20160920.231930 accepted/tizen/mobile/20160920.231850 accepted/tizen/tv/20160920.231858 accepted/tizen/wearable/20160920.231912 submit/tizen/20160920.054624
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 20 Sep 2016 05:41:51 +0000 (14:41 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 20 Sep 2016 05:41:51 +0000 (14:41 +0900)
UX3 kernel task is not complete, so MGMT value is different.
Before completing kernel's task, we need to return the dummy scan status.

Change-Id: I9ba9517aa71659361cc06f7414983386a7a2b269
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluez.spec
src/adapter.c

index c6dff64..550ca22 100644 (file)
@@ -104,6 +104,10 @@ export CFLAGS="${CFLAGS} -D__TIZEN_PATCH__ -D__BROADCOM_PATCH__ -DBLUEZ5_27_GATT
 export CFLAGS="${CFLAGS} -D__BT_SCMST_FEATURE__ -DSUPPORT_SMS_ONLY -D__BROADCOM_QOS_PATCH__ -DTIZEN_WEARABLE"
 %endif
 
+%if "%{?profile}" == "tv"
+export CFLAGS="${CFLAGS} -DTIZEN_PROFILE_TV"
+%endif
+
 export LDFLAGS=" -lncurses -Wl,--as-needed "
 export CFLAGS+=" -DPBAP_SIM_ENABLE -DSUPPORT_AVRCP_TARGET"
 %reconfigure --disable-static \
index c18f6c2..0ac54cf 100644 (file)
@@ -1911,17 +1911,25 @@ static void start_le_discovery_complete(uint8_t status, uint16_t length,
                                        const void *param, void *user_data)
 {
        struct btd_adapter *adapter = user_data;
+#ifndef TIZEN_PROFILE_TV
        const struct mgmt_cp_start_discovery *rp = param;
+#endif
 
        DBG("status 0x%02x", status);
+#ifndef TIZEN_PROFILE_TV
        DBG("Discovery Type 0x%02x", rp->type);
        if (length < sizeof(*rp)) {
                error("Wrong size of start discovery return parameters");
                return;
        }
+#else
+       status = MGMT_STATUS_SUCCESS;
+#endif
 
        if (status == MGMT_STATUS_SUCCESS) {
+#ifndef TIZEN_PROFILE_TV
                adapter->discovery_type |= rp->type;
+#endif
                adapter->discovery_enable = 0x01;
 
                if (adapter->le_discovering)