fix(ble/bluedroid): Fixed CTE IQ sample data copy error

This commit is contained in:
zhiweijian
2025-11-06 12:00:51 +08:00
parent c432820a5e
commit 383bedae88
3 changed files with 12 additions and 4 deletions
@@ -3067,6 +3067,10 @@ static void btu_ble_cte_connless_iq_report_evt(UINT8 *p)
for (uint8_t i = 0; i < connless_iq_rpt.sample_count; i++)
{
STREAM_TO_UINT8(connless_iq_rpt.i_sample[i], p);
}
for (uint8_t i = 0; i < connless_iq_rpt.sample_count; i++)
{
STREAM_TO_UINT8(connless_iq_rpt.q_sample[i], p);
}
@@ -3098,6 +3102,10 @@ static void btu_ble_cte_conn_iq_report_evt(UINT8 *p)
for (uint8_t i = 0; i < conn_iq_rpt.sample_count; i++)
{
STREAM_TO_UINT8(conn_iq_rpt.i_sample[i], p);
}
for (uint8_t i = 0; i < conn_iq_rpt.sample_count; i++)
{
STREAM_TO_UINT8(conn_iq_rpt.q_sample[i], p);
}
@@ -215,7 +215,7 @@ UINT16 L2CA_ConnectReq (UINT16 psm, BD_ADDR p_bd_addr)
**
** Parameters: PSM: L2CAP PSM for the connection
** BD address of the peer
** Enhaced retransmission mode configurations
** Enhanced retransmission mode configurations
** Returns the CID of the connection, or 0 if it failed to start
**
@@ -760,7 +760,7 @@ bool L2CA_GetIdentifiers(uint16_t lcid, uint16_t *rcid, uint16_t *handle)
**
** NOTE This timeout takes effect after at least 1 channel has been
** established and removed. L2CAP maintains its own timer from
** whan a connection is established till the first channel is
** when a connection is established till the first channel is
** set up.
*******************************************************************************/
BOOLEAN L2CA_SetIdleTimeout (UINT16 cid, UINT16 timeout, BOOLEAN is_global)
@@ -524,10 +524,10 @@ void SMP_SecureConnectionOobDataReply(UINT8 *p_data)
** Description This function is called to encrypt the data with the specified
** key
**
** Parameters: key - Pointer to key key[0] conatins the MSB
** Parameters: key - Pointer to key key[0] contains the MSB
** key_len - key length
** plain_text - Pointer to data to be encrypted
** plain_text[0] conatins the MSB
** plain_text[0] contains the MSB
** pt_len - plain text length
** p_out - output of the encrypted texts
**