mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-15 23:42:52 +00:00
hfp: support SDP record without service name
This commit is contained in:
parent
141dff406a
commit
ada240cd03
@ -751,8 +751,10 @@ void hfp_create_sdp_record(uint8_t * service, uint32_t service_record_handle, ui
|
||||
de_pop_sequence(service, attribute);
|
||||
|
||||
// 0x0100 "Service Name"
|
||||
de_add_number(service, DE_UINT, DE_SIZE_16, 0x0100);
|
||||
de_add_data(service, DE_STRING, (uint16_t) strlen(name), (uint8_t *) name);
|
||||
if (strlen(name) > 0){
|
||||
de_add_number(service, DE_UINT, DE_SIZE_16, 0x0100);
|
||||
de_add_data(service, DE_STRING, (uint16_t) strlen(name), (uint8_t *) name);
|
||||
}
|
||||
}
|
||||
|
||||
static void hfp_handle_slc_setup_error(hfp_connection_t * hfp_connection, uint8_t status){
|
||||
|
@ -62,7 +62,7 @@ typedef struct {
|
||||
* @brief Create HFP Audio Gateway (AG) SDP service record.
|
||||
* @param service
|
||||
* @param rfcomm_channel_nr
|
||||
* @param name
|
||||
* @param name or NULL for default value. Provide "" (empty string) to skip attribute
|
||||
* @param ability_to_reject_call
|
||||
* @param supported_features 32-bit bitmap, see HFP_AGSF_* values in hfp.h
|
||||
* @param codecs_nr
|
||||
|
@ -57,8 +57,8 @@ extern "C" {
|
||||
* @brief Create HFP Hands-Free (HF) SDP service record.
|
||||
* @param service
|
||||
* @param rfcomm_channel_nr
|
||||
* @param name
|
||||
* @param suported_features 32-bit bitmap, see HFP_HFSF_* values in hfp.h
|
||||
* @param name or NULL for default value. Provide "" (empty string) to skip attribute
|
||||
* @param supported_features 32-bit bitmap, see HFP_HFSF_* values in hfp.h
|
||||
* @param codecs_nr number of codecs in codecs argument
|
||||
* @param codecs
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user