Linux bluetooth development
 help / color / mirror / Atom feed
From: fdanis-oss <noreply@github.com>
To: linux-bluetooth@vger.kernel.org
Subject: [bluez/bluez] 0cb83c: client/btpclient: refactor read-commands bitmap bu...
Date: Tue, 19 May 2026 04:48:04 -0700	[thread overview]
Message-ID: <bluez/bluez/push/refs/heads/1097304/000000-e6f7d0@github.com> (raw)

  Branch: refs/heads/1097304
  Home:   https://github.com/bluez/bluez
  Commit: 0cb83cdaeb54b3c4b0f544f3b5689ce52974988f
      https://github.com/bluez/bluez/commit/0cb83cdaeb54b3c4b0f544f3b5689ce52974988f
  Author: Frédéric Danis <frederic.danis@collabora.com>
  Date:   2026-05-19 (Tue, 19 May 2026)

  Changed paths:
    M client/btpclient/bap.c
    M client/btpclient/btpclient.c
    M client/btpclient/btpclient.h
    M client/btpclient/core.c
    M client/btpclient/gap.c
    M client/btpclient/gatt.c

  Log Message:
  -----------
  client/btpclient: refactor read-commands bitmap building

Add add_supported_command() and use it across all btp_*_read_commands
handlers.

This replaces fixed-size bitmask assembly with a dynamically growing
command bitmap based on opcode index, avoiding shift-width issues with
higher opcodes.
This will allow to add opcodes like GAP_SET_EXTENDED_ADVERTISING
(0x21).

Refactor core, gap, gatt and bap read-commands paths to build response
bitmaps through the shared helper and preserve existing error handling
for allocation failures.

Assisted-by: GPT:GPT-5.3-Codex


  Commit: 654df3d8b47612d2d0d740d940095982c8f9d9e9
      https://github.com/bluez/bluez/commit/654df3d8b47612d2d0d740d940095982c8f9d9e9
  Author: Frédéric Danis <frederic.danis@collabora.com>
  Date:   2026-05-19 (Tue, 19 May 2026)

  Changed paths:
    M client/btpclient/gap.c

  Log Message:
  -----------
  client/btpclient: Replace advertising defines by shared ones

The advertisement types are already defined in src/shared/ad.h


  Commit: e6f7d0db186428ccb5d3734e157bc964be62a454
      https://github.com/bluez/bluez/commit/e6f7d0db186428ccb5d3734e157bc964be62a454
  Author: Frédéric Danis <frederic.danis@collabora.com>
  Date:   2026-05-19 (Tue, 19 May 2026)

  Changed paths:
    M client/btpclient/gap.c
    M src/shared/btp.h

  Log Message:
  -----------
  client/btpclient: Add BTP_OP_GAP_SET_EXTENDED_ADVERTISING support

This set LEAdvertisement1's SecondaryChannel property to "2M" to
force Extended advertisement type.


Compare: https://github.com/bluez/bluez/compare/0cb83cdaeb54%5E...e6f7d0db1864

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

                 reply	other threads:[~2026-05-19 11:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bluez/bluez/push/refs/heads/1097304/000000-e6f7d0@github.com \
    --to=noreply@github.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox