File tree Expand file tree Collapse file tree 3 files changed +41
-2
lines changed
components/bt/host/bluedroid Expand file tree Collapse file tree 3 files changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,26 @@ config BT_SDP_COMMON_ENABLED
132132 help
133133 This enables common SDP operation, such as SDP record creation and deletion.
134134
135+ config BT_SDP_PAD_LEN
136+ int "BT SDP attributes allocated length (bytes)"
137+ depends on BT_CLASSIC_ENABLED
138+ default 300
139+ range 300 1024
140+ help
141+ This is the total size of all SDP attributes allowed.
142+ Any attributes that exceed this size are truncated.
143+ The default value is 300.
144+
145+ config BT_SDP_ATTR_LEN
146+ int "BT SDP attribute allocated length (bytes)"
147+ depends on BT_CLASSIC_ENABLED
148+ default 400
149+ range 400 1024
150+ help
151+ This is the maximum allowed size for a single SDP attribute.
152+ Any attributes that exceed this size are truncated.
153+ The default value is 400.
154+
135155menuconfig BT_HFP_ENABLE
136156 bool "Hands Free/Handset Profile"
137157 depends on BT_CLASSIC_ENABLED
Original file line number Diff line number Diff line change 7373#define UC_BT_SDP_COMMON_ENABLED FALSE
7474#endif
7575
76+ // SDP Pad Length
77+ #ifdef CONFIG_BT_SDP_PAD_LEN
78+ #define UC_SDP_MAX_PAD_LEN CONFIG_BT_SDP_PAD_LEN
79+ #else
80+ #define UC_SDP_MAX_PAD_LEN 300
81+ #endif
82+
83+ // SDP Max Attribute Length
84+ #ifdef CONFIG_BT_SDP_ATTR_LEN
85+ #define UC_SDP_MAX_ATTR_LEN CONFIG_BT_SDP_ATTR_LEN
86+ #else
87+ #define UC_SDP_MAX_ATTR_LEN 400
88+ #endif
89+
7690//HFP(AG)
7791#ifdef CONFIG_BT_HFP_AG_ENABLE
7892#define UC_BT_HFP_AG_ENABLED CONFIG_BT_HFP_AG_ENABLE
Original file line number Diff line number Diff line change 16581658#endif /* defined(HID_DEV_INCLUDED) && (HID_DEV_INCLUDED==TRUE) */
16591659#endif
16601660
1661- #ifndef SDP_MAX_PAD_LEN
1661+ /* The maximum length, in bytes, of all SDP attributes combined. */
1662+ #if defined(UC_SDP_MAX_PAD_LEN )
1663+ #define SDP_MAX_PAD_LEN UC_SDP_MAX_PAD_LEN
1664+ #elif !defined(SDP_MAX_PAD_LEN )
16621665#define SDP_MAX_PAD_LEN 300
16631666#endif
16641667
16651668/* The maximum length, in bytes, of an attribute. */
1666- #ifndef SDP_MAX_ATTR_LEN
1669+ #if defined(UC_SDP_MAX_ATTR_LEN )
1670+ #define SDP_MAX_ATTR_LEN UC_SDP_MAX_ATTR_LEN
1671+ #elif !defined(SDP_MAX_ATTR_LEN )
16671672#define SDP_MAX_ATTR_LEN 400
16681673#endif
16691674
You can’t perform that action at this time.
0 commit comments