[bluez/bluez] 352237: src: Add new CablePairing property

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Branch: refs/heads/956666
  Home:   https://github.com/bluez/bluez
  Commit: 352237cb35cb4d0f606733ed36b7a3da4fedcf08
      https://github.com/bluez/bluez/commit/352237cb35cb4d0f606733ed36b7a3da4fedcf08
  Author: Ludovico de Nittis <ludovico.denittis@xxxxxxxxxxxxx>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M doc/org.bluez.Device.rst
    M src/device.c
    M src/device.h

  Log Message:
  -----------
  src: Add new CablePairing property

This adds initial support for a new CablePairing property.
The property can be used for devices that are paired using a cable and
don't support the expected bonding (with pairing/encryption), for
example like the Sixaxis gamepads.


  Commit: 1ead3988ad6718d386a70a113269e02815028f41
      https://github.com/bluez/bluez/commit/1ead3988ad6718d386a70a113269e02815028f41
  Author: Ludovico de Nittis <ludovico.denittis@xxxxxxxxxxxxx>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M client/main.c

  Log Message:
  -----------
  client: Print CablePairing property

When using the `info` command, include the new CablePairing value.


  Commit: 9787d5520347693a2de5e7a1ffa923c963cf1af3
      https://github.com/bluez/bluez/commit/9787d5520347693a2de5e7a1ffa923c963cf1af3
  Author: Ludovico de Nittis <ludovico.denittis@xxxxxxxxxxxxx>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M plugins/sixaxis.c

  Log Message:
  -----------
  sixaxis: Set CablePairing when pairing a Sixaxis with USB

Sixaxis gamepads don't support encryption. When doing the USB cable
pairing, set the CablePairing property to keep the connection to the
device unencrypted.


  Commit: 61b9c83d82d1cadf58f12596b08f8b5062f8600c
      https://github.com/bluez/bluez/commit/61b9c83d82d1cadf58f12596b08f8b5062f8600c
  Author: Ludovico de Nittis <ludovico.denittis@xxxxxxxxxxxxx>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M src/adapter.c
    M src/adapter.h

  Log Message:
  -----------
  adapter: Add btd_adapter_has_cable_pairing_devices()

Add a function that can be used to know if any of the known devices have
the `CablePaired` property set.


  Commit: 16a2c7919e8da98a08ef72f76156d0b4e5a570a9
      https://github.com/bluez/bluez/commit/16a2c7919e8da98a08ef72f76156d0b4e5a570a9
  Author: Ludovico de Nittis <ludovico.denittis@xxxxxxxxxxxxx>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M profiles/input/device.c
    M profiles/input/manager.c
    M profiles/input/server.c
    M profiles/input/server.h

  Log Message:
  -----------
  input: Automatically use sec level low when using a cable paired device

BT_IO_SEC_LOW is the only way to allow devices that use cable pairing to
establish a connection.

This adds the ability to start the listening input server with
BT_IO_SEC_LOW to avoid breaking support for these devices, and then,
in `hidp_add_connection()`, we check if either `classic_bonded_only` was
disabled or if this device has `CablePairing`. If neither are true, we
bump the security back to BT_IO_SEC_MEDIUM, i.e. enforcing encryption.

This allows supporting these devices without having to change the
classic bonded only option.

This doesn't cover the case where a device with `CablePairing` gets
loaded from storage. That case will be handled with a followup commit.


  Commit: abbcb3352cc6621c9858733dbb29362f29cc2cc0
      https://github.com/bluez/bluez/commit/abbcb3352cc6621c9858733dbb29362f29cc2cc0
  Author: Ludovico de Nittis <ludovico.denittis@xxxxxxxxxxxxx>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M src/adapter.c

  Log Message:
  -----------
  adapter: Set server security level in load_devices()

After loading known devices from storage, change the security level if
we have a device with `CablePairing`.
This will allow it to successfully establish a connection.


  Commit: 72d064cccbfb7f37aef6e32dc8ee97ea1ae93498
      https://github.com/bluez/bluez/commit/72d064cccbfb7f37aef6e32dc8ee97ea1ae93498
  Author: Ludovico de Nittis <ludovico.denittis@xxxxxxxxxxxxx>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M plugins/sixaxis.c

  Log Message:
  -----------
  sixaxis: Set security level when adding a sixaxis device

When doing the cable pairing for a sixaxis, we may need to change the
listening input server security level.
This is because sixaxis gamepads can only work with the level
BT_IO_SEC_LOW.


Compare: https://github.com/bluez/bluez/compare/352237cb35cb%5E...72d064cccbfb

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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux