feat(bt/bluedroid): Add avdt abort function for BQB test

1: add new AVDTP abort function for BQB test
This commit is contained in:
wanglai@espressif.com 2023-08-31 18:20:11 +08:00 committed by gongyantao
parent 35535a6b6e
commit 15c7cf4cab

View File

@ -62,6 +62,11 @@
#define BTA_AV_RECONFIG_RETRY 6
#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);
/* 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 */
// This code is used to pass PTS TC for AVDTP ABORT
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*/
}
/*******************************************************************************
**
** 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