OSDN Git Service

SDP_FLUSH_TO is always 0xFFFF (L2cap default)
authorHansong Zhang <hsz@google.com>
Wed, 23 Sep 2020 22:14:14 +0000 (15:14 -0700)
committerHansong Zhang <hsz@google.com>
Thu, 24 Sep 2020 02:14:16 +0000 (19:14 -0700)
Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I47ea25194816a9aebf64c2e7eea3ff329cd3624e

internal_include/bt_target.h
stack/sdp/sdp_main.cc

index 469e533..4da7f2d 100644 (file)
 #define SDP_MTU_SIZE 1024
 #endif
 
-/* The flush timeout for the L2CAP configuration. */
-#ifndef SDP_FLUSH_TO
-#define SDP_FLUSH_TO 0xFFFF
-#endif
-
 /* The name for security authorization. */
 #ifndef SDP_SERVICE_NAME
 #define SDP_SERVICE_NAME "Service Discovery"
index e5fc5b4..4f596ed 100644 (file)
@@ -72,11 +72,9 @@ void sdp_init(void) {
     sdp_cb.ccb[i].sdp_conn_timer = alarm_new("sdp.sdp_conn_timer");
   }
 
-  /* Initialize the L2CAP configuration. We only care about MTU and flush */
+  /* Initialize the L2CAP configuration. We only care about MTU */
   sdp_cb.l2cap_my_cfg.mtu_present = true;
   sdp_cb.l2cap_my_cfg.mtu = SDP_MTU_SIZE;
-  sdp_cb.l2cap_my_cfg.flush_to_present = true;
-  sdp_cb.l2cap_my_cfg.flush_to = SDP_FLUSH_TO;
 
   sdp_cb.max_attr_list_size = SDP_MTU_SIZE - 16;
   sdp_cb.max_recs_per_search = SDP_MAX_DISC_SERVER_RECS;