diff options
author | emax <emax@FreeBSD.org> | 2010-09-07 16:36:03 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2010-09-07 16:36:03 +0000 |
commit | bc5345740166d203184b0fcb641dfc82186abf48 (patch) | |
tree | a9525a5607e492a88fb4877647bded082e8d0c13 /usr.sbin | |
parent | 0f939dc96e7e1aec8c86f3cad8891d9e3c0ffe1b (diff) | |
download | FreeBSD-src-bc5345740166d203184b0fcb641dfc82186abf48.zip FreeBSD-src-bc5345740166d203184b0fcb641dfc82186abf48.tar.gz |
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 >
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bluetooth/bthidcontrol/sdp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bluetooth/bthidcontrol/sdp.c b/usr.sbin/bluetooth/bthidcontrol/sdp.c index 032863e..a0b4534 100644 --- a/usr.sbin/bluetooth/bthidcontrol/sdp.c +++ b/usr.sbin/bluetooth/bthidcontrol/sdp.c @@ -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); |