OSDN Git Service

Initialize the DIS client before requesting DIS UUIDs from peer
authorAdam Hampson <ahampson@google.com>
Wed, 28 May 2014 16:31:59 +0000 (09:31 -0700)
committerAdam Hampson <ahampson@google.com>
Wed, 28 May 2014 16:33:49 +0000 (09:33 -0700)
Bug: 15308663

Change-Id: I586c486f838e1742db1785e79ca1451b33b21367
Signed-off-by: Adam Hampson <ahampson@google.com>
stack/srvc/srvc_dis.c

index 7c4df0d..73be84b 100644 (file)
@@ -427,6 +427,9 @@ BOOLEAN DIS_ReadDISInfo(BD_ADDR peer_bda, tDIS_READ_CBACK *p_cback)
 {
     UINT16             conn_id;
 
+    /* Initialize the DIS client if it hasn't been initialized already. */
+    srvc_eng_init();
+
     /* For now we only handle one at a time */
     if (dis_cb.dis_read_uuid_idx != 0xff)
         return(FALSE);