forked from espressif/esp-idf
feat(bt/bluedroid): Add avdt abort function for BQB test
1: add new AVDTP abort function for BQB test
This commit is contained in:
committed by
gongyantao
parent
711477d354
commit
40b99b513c
@ -62,6 +62,11 @@
|
|||||||
#define BTA_AV_RECONFIG_RETRY 6
|
#define BTA_AV_RECONFIG_RETRY 6
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* avdt_handle to send abort command for AVDTP BQB test */
|
||||||
|
#if A2D_SRC_BQB_INCLUDED
|
||||||
|
static uint8_t s_avdt_bqb_handle;
|
||||||
|
#endif /* CONFIG_BT_BQB_ENABLED */
|
||||||
|
|
||||||
static void bta_av_st_rc_timer(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data);
|
static void bta_av_st_rc_timer(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data);
|
||||||
|
|
||||||
/* state machine states */
|
/* state machine states */
|
||||||
@ -1415,6 +1420,10 @@ void bta_av_str_opened (tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if A2D_SRC_BQB_INCLUDED
|
||||||
|
s_avdt_bqb_handle = p_scb->avdt_handle;
|
||||||
|
#endif /* A2D_SRC_BQB_INCLUDED */
|
||||||
|
|
||||||
#if 0 /* TODO: implement the property enable/disable */
|
#if 0 /* TODO: implement the property enable/disable */
|
||||||
// This code is used to pass PTS TC for AVDTP ABORT
|
// This code is used to pass PTS TC for AVDTP ABORT
|
||||||
char value[PROPERTY_VALUE_MAX] = {0};
|
char value[PROPERTY_VALUE_MAX] = {0};
|
||||||
@ -1426,6 +1435,22 @@ void bta_av_str_opened (tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data)
|
|||||||
#endif /* #if 0*/
|
#endif /* #if 0*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
**
|
||||||
|
** Function avdt_bqb_abort
|
||||||
|
**
|
||||||
|
** Description Send AVDT abort request for BQB test
|
||||||
|
**
|
||||||
|
** Returns void
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
#if A2D_SRC_BQB_INCLUDED
|
||||||
|
void avdt_bqb_abort(void)
|
||||||
|
{
|
||||||
|
AVDT_AbortReq(s_avdt_bqb_handle);
|
||||||
|
}
|
||||||
|
#endif /* A2D_SRC_BQB_INCLUDED */
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
** Function bta_av_security_ind
|
** Function bta_av_security_ind
|
||||||
|
Reference in New Issue
Block a user