Date: Tue, 14 Sep 2010 00:32:29 +0000 (UTC) From: Maksim Yevmenkin <emax@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r212587 - stable/8/usr.sbin/bluetooth/bthidcontrol Message-ID: <201009140032.o8E0WTvV046952@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emax Date: Tue Sep 14 00:32:29 2010 New Revision: 212587 URL: http://svn.freebsd.org/changeset/base/212587 Log: MFC r212296 Do not request SDP attributes using ranges. Apparently some devices do not like it. Tested by: Buganini < buganini at gmail dot com > Modified: stable/8/usr.sbin/bluetooth/bthidcontrol/sdp.c Directory Properties: stable/8/usr.sbin/bluetooth/bthidcontrol/ (props changed) Modified: stable/8/usr.sbin/bluetooth/bthidcontrol/sdp.c ============================================================================== --- stable/8/usr.sbin/bluetooth/bthidcontrol/sdp.c Mon Sep 13 22:50:05 2010 (r212586) +++ stable/8/usr.sbin/bluetooth/bthidcontrol/sdp.c Tue Sep 14 00:32:29 2010 (r212587) @@ -54,7 +54,9 @@ SDP_ATTR_RANGE( SDP_ATTR_PROTOCOL_DESCRI 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, str } 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009140032.o8E0WTvV046952>