[Bug 245899] [Patch] Fix service UUIDs in advertising data/scan response

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Apr 25 09:24:44 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245899

            Bug ID: 245899
           Summary: [Patch] Fix service UUIDs in advertising data/scan
                    response
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: wireless
          Assignee: wireless at FreeBSD.org
          Reporter: marc at bumblingdork.com

Created attachment 213773
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=213773&action=edit
Properly update ad field length

The length octet of the 'partial service id list' AD type was not set properly.
Set the lenght position pointer to the current buffer position,
increment after each 16-bit uuid is added.

Bluetooth Core specification 5.2 Vol3, Part C, section 11.

Example:

https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2017/02/10/bluetooth_advertisin-hGsf

Replace deprecated atoi with strdol while here.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-wireless mailing list