[bluez/bluez] 941ab2: src: Add new CablePairing property

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

 



  Branch: refs/heads/956690
  Home:   https://github.com/bluez/bluez
  Commit: 941ab24411923feadac7181e9be9afa41018c1b8
      https://github.com/bluez/bluez/commit/941ab24411923feadac7181e9be9afa41018c1b8
  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: 5d34b00c46dc7bdf42545645e83f98cf878f40a7
      https://github.com/bluez/bluez/commit/5d34b00c46dc7bdf42545645e83f98cf878f40a7
  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: e89ad7dbb06f11947e014d8eea2c96ef5605798b
      https://github.com/bluez/bluez/commit/e89ad7dbb06f11947e014d8eea2c96ef5605798b
  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: 630731ccf41b6bb7b95d3378483c8db7e8cc4a06
      https://github.com/bluez/bluez/commit/630731ccf41b6bb7b95d3378483c8db7e8cc4a06
  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: cf0716c0fc8c7794d417a3f74f3d274587a29670
      https://github.com/bluez/bluez/commit/cf0716c0fc8c7794d417a3f74f3d274587a29670
  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.


  Commit: 4b6ffb046c5605e216797914c810eafecbaa0d10
      https://github.com/bluez/bluez/commit/4b6ffb046c5605e216797914c810eafecbaa0d10
  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/941ab2441192%5E...4b6ffb046c56

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