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

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

 



  Branch: refs/heads/956700
  Home:   https://github.com/bluez/bluez
  Commit: c62df91830396908b4ef3ccdbf8a0e2db35bcd3f
      https://github.com/bluez/bluez/commit/c62df91830396908b4ef3ccdbf8a0e2db35bcd3f
  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: f384c59f7ef7c5e754f2240c91567a45fb25fc8e
      https://github.com/bluez/bluez/commit/f384c59f7ef7c5e754f2240c91567a45fb25fc8e
  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: 6d92db305fc027b732f91d005b437e1f1210ab18
      https://github.com/bluez/bluez/commit/6d92db305fc027b732f91d005b437e1f1210ab18
  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: 2d1745a125679e34e7acab6fbd1807625da59ec5
      https://github.com/bluez/bluez/commit/2d1745a125679e34e7acab6fbd1807625da59ec5
  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: 509cbe9f3551ef8420eb135ca5f67924f0a3ed73
      https://github.com/bluez/bluez/commit/509cbe9f3551ef8420eb135ca5f67924f0a3ed73
  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: c03b3fa2e7b9ccf126789628d02be8f43a811bae
      https://github.com/bluez/bluez/commit/c03b3fa2e7b9ccf126789628d02be8f43a811bae
  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/c62df9183039%5E...c03b3fa2e7b9

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