From cd6d6c62804f8a77b2d61c0bd287e83c8704b3fd Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Thu, 17 Nov 2016 14:01:38 +0800 Subject: [PATCH] component/bt: Cut down RAM cost: reduce SDP data record number --- components/bt/bluedroid/bta/sdp/bta_sdp_cfg.c | 2 +- components/bt/bluedroid/include/bt_target.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/bt/bluedroid/bta/sdp/bta_sdp_cfg.c b/components/bt/bluedroid/bta/sdp/bta_sdp_cfg.c index eef2511a5..038183c6d 100755 --- a/components/bt/bluedroid/bta/sdp/bta_sdp_cfg.c +++ b/components/bt/bluedroid/bta/sdp/bta_sdp_cfg.c @@ -25,7 +25,7 @@ #include "bta_sdp_api.h" #ifndef BTA_SDP_DB_SIZE -#define BTA_SDP_DB_SIZE 4500 +#define BTA_SDP_DB_SIZE 1500 #endif static UINT8 __attribute__ ((aligned(4))) bta_sdp_db_data[BTA_SDP_DB_SIZE]; diff --git a/components/bt/bluedroid/include/bt_target.h b/components/bt/bluedroid/include/bt_target.h index ee70d0661..d09b0f6dc 100755 --- a/components/bt/bluedroid/include/bt_target.h +++ b/components/bt/bluedroid/include/bt_target.h @@ -1001,7 +1001,7 @@ /* The maximum number of SDP records the server can support. */ #ifndef SDP_MAX_RECORDS -#define SDP_MAX_RECORDS 15 /*max is 30*/ +#define SDP_MAX_RECORDS 4 /*max is 30*/ #endif /* The maximum number of attributes in each record. */