OSDN Git Service

print MTU size after get MTU request from iphone.
authorZhihai Xu <zhihaixu@google.com>
Fri, 21 Mar 2014 00:50:12 +0000 (17:50 -0700)
committerZhihai Xu <zhihaixu@google.com>
Fri, 21 Mar 2014 00:50:12 +0000 (17:50 -0700)
bug:13568537
Change-Id: If1a4e93b7ef53662bd740da0d3bb91fe747de031

stack/gatt/gatt_sr.c

index 88040fe..c006dd2 100644 (file)
@@ -929,6 +929,8 @@ static void gatts_process_mtu_req (tGATT_TCB *p_tcb, UINT16 len, UINT8 *p_data)
         else
             p_tcb->payload_size = mtu;
 
+        GATT_TRACE_ERROR1("MTU request PDU with MTU size %d", p_tcb->payload_size);
+
         if ((p_buf = attp_build_sr_msg(p_tcb, GATT_RSP_MTU, (tGATT_SR_MSG *) &p_tcb->payload_size)) != NULL)
         {
             attp_send_sr_msg (p_tcb, p_buf);