OSDN Git Service

Revert "DO NOT MERGE Proper construction of AVDTP general reject message"
authorJivakDhadse <jdhads@codeaurora.org>
Fri, 7 Aug 2015 13:28:38 +0000 (18:58 +0530)
committerPavlin Radoslavov <pavlin@google.com>
Thu, 18 Aug 2016 21:57:15 +0000 (21:57 +0000)
This reverts commit 2ed10d442266eade44be121cd24fd473c85007d0.

Original change needs to be reverted to align with Errata
ESR04 where "Section 8.17, General Reject Page 71" of adopted
AvDTP Spec is changed to have "Invalid Signal Identifier"
in first 6 bits of Octet 1.
This change helps passing PTS case TP/SIG/SMG/ESR04/BI-28-C

Bug: 27852645
Change-Id: Idfc960ce00662e8aacc26f3b3fdca9deca8a2aff
(cherry picked from commit 825cd49864f7338be8b33f901ddf3be8e1bab7c1)

stack/avdt/avdt_msg.c

index ddbeb55..dbeb016 100644 (file)
@@ -1661,9 +1661,9 @@ void avdt_msg_send_grej(tAVDT_CCB *p_ccb, uint8_t sig_id, tAVDT_MSG *p_params)
     p_buf->len = (uint16_t) (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);
-    AVDT_TRACE_DEBUG("avdt_msg_send_grej");
+    p_buf->event = sig_id;
+    AVDT_BLD_LAYERSPEC(p_buf->layer_specific, AVDT_MSG_TYPE_GRJ, p_params->hdr.label);
+    AVDT_TRACE_DEBUG(__func__);
 
     /* queue message and trigger ccb to send it */
     fixed_queue_enqueue(p_ccb->rsp_q, p_buf);