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 \
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)