mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Do not request SDP attributes using ranges.
Apparently some devices do not like it. MFC after: 1 week Tested by: Buganini < buganini at gmail dot com >
This commit is contained in:
parent
8e27c18282
commit
33e98ade53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212296
@ -54,7 +54,9 @@ SDP_ATTR_RANGE( SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST,
|
||||
SDP_ATTR_RANGE (SDP_ATTR_ADDITIONAL_PROTOCOL_DESCRIPTOR_LISTS,
|
||||
SDP_ATTR_ADDITIONAL_PROTOCOL_DESCRIPTOR_LISTS),
|
||||
SDP_ATTR_RANGE( 0x0205, /* HIDReconnectInitiate */
|
||||
0x0206), /* HIDDescriptorList */
|
||||
0x0205),
|
||||
SDP_ATTR_RANGE( 0x0206, /* HIDDescriptorList */
|
||||
0x0206),
|
||||
SDP_ATTR_RANGE( 0x0209, /* HIDBatteryPower */
|
||||
0x0209),
|
||||
SDP_ATTR_RANGE( 0x020d, /* HIDNormallyConnectable */
|
||||
@ -149,7 +151,7 @@ hid_sdp_query(bdaddr_t const *local, struct hid_device *hd, int32_t *error)
|
||||
}
|
||||
|
||||
if (control_psm == -1 || interrupt_psm == -1 ||
|
||||
reconnect_initiate == -1 || normally_connectable == -1 ||
|
||||
reconnect_initiate == -1 ||
|
||||
hid_descriptor == NULL || hid_descriptor_length == -1)
|
||||
hid_sdp_query_exit(ENOATTR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user