Skip to content

Commit d800bf1

Browse files
chengkai15hyson710
authored andcommitted
SPP: fix sdp discovery uuid param invalid
bug: v/73971 sdp_discover type should be set with BT_SDP_DISCOVER_SERVICE_SEARCH_ATTR, when request sdp discovery in last btstack Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
1 parent 7ebe4b6 commit d800bf1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

service/stacks/zephyr/sal_spp_interface.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ static bt_status_t spp_connect_with_uuid(sal_spp_connection_t* spp_conn, bt_uuid
664664
}
665665

666666
spp_client->sdp_discover.func = sdp_discovered_cb;
667+
spp_client->sdp_discover.type = BT_SDP_DISCOVER_SERVICE_SEARCH_ATTR;
667668
spp_client->sdp_discover.pool = &spp_sdp_pool;
668669
spp_client->sdp_discover.uuid = (const struct bt_uuid*)&spp_client->uuid_128;
669670

0 commit comments

Comments
 (0)