mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
feat(bt/bluedroid): Add flags for BQB auto test of L2CAP
1: add sdp_bqb_disable_flag to avoid running sdpu_build_n_send_error. 2: add sdp_bqb_inact_timeout_flag to set the SDP inactivity timeout to 90 seconds. 3: add l2cap_bqb_bad_cmd_len_rej_flag to reject the C-Frame with invalid PDU length 4: add l2cap_bqb_ertm_mode_included_flag to set L2CAP_FCR_ERTM_MODE for most L2CAP cases
This commit is contained in:

committed by
gongyantao

parent
10c7026053
commit
afc7cf445e
@@ -2137,6 +2137,33 @@ UINT8 L2CA_DataWrite (UINT16 cid, BT_HDR *p_data)
|
||||
}
|
||||
#endif ///CLASSIC_BT_INCLUDED == TRUE
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function l2cap_bqb_write_data
|
||||
**
|
||||
** Description Call L2CA_DataWrite and write I-Frame data for BQB test.
|
||||
**
|
||||
** Returns None
|
||||
**
|
||||
*******************************************************************************/
|
||||
#if (BT_CLASSIC_BQB_INCLUDED == TRUE)
|
||||
void l2cap_bqb_write_data(UINT16 cid)
|
||||
{
|
||||
BT_HDR *p_buf;
|
||||
uint8_t *p;
|
||||
|
||||
if ((p_buf = (BT_HDR *)osi_malloc(SDP_DATA_BUF_SIZE)) != NULL) {
|
||||
p_buf->len = 30;
|
||||
p_buf->offset = L2CAP_MIN_OFFSET;
|
||||
p = (UINT8 *)(p_buf + 1) + p_buf->offset;
|
||||
for(int i = 0 ; i < 10; i++) {
|
||||
UINT8_TO_BE_STREAM(p, 0)
|
||||
}
|
||||
L2CA_DataWrite(cid, p_buf);
|
||||
}
|
||||
}
|
||||
#endif /* BT_CLASSIC_BQB_INCLUDED */
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function L2CA_SetChnlFlushability
|
||||
|
Reference in New Issue
Block a user