Fix AVDTP general reject format error.

This commit is contained in:
xiongweichao 2022-03-29 16:28:13 +08:00
parent 14b204e201
commit cec2713416

View File

@ -1586,8 +1586,8 @@ void avdt_msg_send_grej(tAVDT_CCB *p_ccb, UINT8 sig_id, tAVDT_MSG *p_params)
p_buf->len = (UINT16) (p - p_start);
/* stash sig, label, and message type in buf */
p_buf->event = 0;
AVDT_BLD_LAYERSPEC(p_buf->layer_specific, 0, p_params->hdr.label);
p_buf->event = sig_id;
AVDT_BLD_LAYERSPEC(p_buf->layer_specific, AVDT_MSG_TYPE_GRJ, p_params->hdr.label);
AVDT_TRACE_DEBUG("avdt_msg_send_grej");
/* queue message and trigger ccb to send it */