p_scb->slc_pend_open = FALSE;
bta_ag_at_reinit(&p_scb->at_cb);
- memset(&(p_scb->peer_hf_indicators), 0, sizeof(p_scb->peer_hf_indicators));
- memset(&(p_scb->local_hf_indicators), 0, sizeof(p_scb->local_hf_indicators));
-
/* stop timers */
alarm_cancel(p_scb->ring_timer);
#if (BTM_WBS_INCLUDED == TRUE)
BTM_SCO_PKT_TYPES_MASK_NO_3_EV5)
#endif
-#ifndef BTA_AG_BIND_INFO
-#define BTA_AG_BIND_INFO "(1)"
-#endif
-
-const tBTA_AG_HF_IND bta_ag_local_hf_ind_cfg[] =
-{
- /* The first row contains the number of indicators. Need to be updated accordingly */
- {BTA_AG_NUM_LOCAL_HF_IND, 0, 0, 0, 0},
-
- {1, 1, 1, 0, 1}, /* Enhanced Driver Status, supported, enabled, range 0 ~ 1 */
- {2, 1, 1, 0, 100} /* Battery Level Status, supported, enabled, range 0 ~ 100 */
-};
-
const tBTA_AG_CFG bta_ag_cfg =
{
BTA_AG_CIND_INFO,
- BTA_AG_BIND_INFO,
- BTA_AG_NUM_LOCAL_HF_IND,
BTA_AG_CONN_TIMEOUT,
BTA_AG_SCO_PKT_TYPES,
BTA_AG_CHLD_VAL_ECC,
if (service_uuid == UUID_SERVCLASS_AG_HANDSFREE)
{
profile_uuid = UUID_SERVCLASS_HF_HANDSFREE;
- version = BTA_HFP_VERSION;
+ version = HFP_VERSION_1_6;
}
else
{
*******************************************************************************/
void bta_hh_le_deregister_input_notif(tBTA_HH_DEV_CB *p_dev_cb)
{
- tBTA_HH_LE_RPT *p_rpt = &p_dev_cb->hid_srvc.report[0];
+ tBTA_HH_LE_RPT *p_rpt = &p_dev_cb->hid_srvc[p_dev_cb->cur_srvc_index].report[0];
for (UINT8 i = 0; i < BTA_HH_LE_RPT_MAX; i++, p_rpt++)
{
BOOLEAN Gatt_Connect (tGATT_IF gatt_if, BD_ADDR bd_addr, BOOLEAN is_direct,tBT_TRANSPORT transport)
{
BOOLEAN Ret = 0;
- Ret = GATT_Connect(gatt_if, bd_addr, is_direct,BT_TRANSPORT_LE);
+ Ret = GATT_Connect(gatt_if, bd_addr, is_direct,BT_TRANSPORT_LE, false);
printf("%s::Ret=%d,gatt_if=%d, is_direct=%d \n", __FUNCTION__, Ret, gatt_if, is_direct);
return Ret;
}
static void btif_media_aa_prep_2_send(UINT8 nb_frame, uint64_t timestamp_us)
{
// Check for TX queue overflow
-
+ BD_ADDR peer_bda;
if (nb_frame > MAX_OUTPUT_A2DP_FRAME_QUEUE_SZ)
nb_frame = MAX_OUTPUT_A2DP_FRAME_QUEUE_SZ;
}
// Request RSSI for log purposes if we had to flush buffers
- bt_bdaddr_t peer_bda = btif_av_get_addr();
- BTM_ReadRSSI(peer_bda.address, btm_read_rssi_cb);
+ btif_av_get_addr(peer_bda);
+ BTM_ReadRSSI(peer_bda, btm_read_rssi_cb);
}
// Transcode frame
#define UUID_CODEC_MSBC 0x0002 /* mSBC */
#endif
-#define UUID_HF_IND_ENHANCED_DRIVER_SAFETY 0x0001 /* Assigned number for Enhanced Safety */
-#define UUID_HF_IND_BATTERY_LEVEL_STATUS 0x0002 /* Assigned number for Battery Status */
-
/* Define all the 'Descriptor Type' values.
*/
#define NULL_DESC_TYPE 0