Explorar o código

Fix AVDTP general reject format error.

xiongweichao %!s(int64=3) %!d(string=hai) anos
pai
achega
a2ea4f5bc9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      components/bt/host/bluedroid/stack/avdt/avdt_msg.c

+ 2 - 2
components/bt/host/bluedroid/stack/avdt/avdt_msg.c

@@ -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 */