register HID with SDP error
Iain Hibbert
plunky at ogmig.net
Mon Mar 23 07:42:45 UTC 2015
On Sun, 22 Mar 2015, Waitman Gobble wrote:
> Through trial and error I found that this code is preventing the
> response to the 0x0100 (L2CAP) query.
>
> in sdpd/ssar.c around line 230 or so.
>
> if (memcmp(&uuid, &puuid, sizeof(uuid)) != 0 &&
> memcmp(&uuid, &uuid_public_browse_group, sizeof(uuid)) != 0)
> continue;
>
>
> When I comment that code out then it responds to the request with the
> list of registered and advertised services and my clients then
> magically connect.
and if you search for some other protocol UUID that is perhaps not
present? I suspect that without that code, you will get all profiles
back, whatever you search for (which is going to be wrong :)
the real problem is, that sdpd does not enumerate the Protocol UUIDs in
each profile that it has stored, and therefore cannot respond properly to
the request for 'all records containing UUID 0x0100' for example.
regards,
iain
More information about the freebsd-bluetooth
mailing list