[bluez/bluez] 141513: mgmt-tester: Add a 0-entry to expect_hci_list lists

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

 



  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: 141513cd0229ef47cc96031666eb758b1824f43f
      https://github.com/bluez/bluez/commit/141513cd0229ef47cc96031666eb758b1824f43f
  Author: Jonas Dreßler <verdre@xxxxxxx>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M tools/mgmt-tester.c

  Log Message:
  -----------
  mgmt-tester: Add a 0-entry to expect_hci_list lists

In add_expect_hci_list() we iterate through the entries of the
expect_hci_list as long as there is an opcode, which means currently
this relies on overflowing the buffer to detect the end of the list.

This is not great and when running with address sanitizer, the
out-of-bounds read gets detected and mgmt-tester aborts. Fix it by
adding a trailing zero-entry to all those lists.


  Commit: 6a264df7200b3350712decf5d09d7bcef7a50fc2
      https://github.com/bluez/bluez/commit/6a264df7200b3350712decf5d09d7bcef7a50fc2
  Author: Jonas Dreßler <verdre@xxxxxxx>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M tools/mgmt-tester.c

  Log Message:
  -----------
  mgmt-tester: Adjust a test for recent kernel changes

With the changes in the kernel to move to hci_sync for connecting ACL
devices (see kernel commit "Bluetooth: hci_conn: Only do ACL connections
sequentially"), the "ETIMEDOUT" error path for the "HCI Create
Connection" command was changed, sending a "HCI Create Connection
Cancel" command after the timeout.

This leads to the returned error in the "Pair Device - Power off 1"
test to change from NOT_POWERED to DISCONNECTED, so adjust for that.


  Commit: d5c1c0e80f4ac26edd29e45ea3c8a4679a5eab60
      https://github.com/bluez/bluez/commit/d5c1c0e80f4ac26edd29e45ea3c8a4679a5eab60
  Author: Jonas Dreßler <verdre@xxxxxxx>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M emulator/btdev.c

  Log Message:
  -----------
  emulator/btdev: Send page timeout after 5.12 secs delay

Real bluetooth adapters wouldn't send the page timeout immediately
when trying to page a device, instead it would take a few seconds.

Try to behave more realistically in the emulator and send the page
timeout after 5.12 seconds, which is the default page timeout.


  Commit: c3613b8a933d62bef10a8f4258976c41156e095f
      https://github.com/bluez/bluez/commit/c3613b8a933d62bef10a8f4258976c41156e095f
  Author: Pauli Virtanen <pav@xxxxxx>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M monitor/a2dp.c

  Log Message:
  -----------
  monitor: parse Google's Opus A2DP vendor codec capabilities

Support parsing Opus (Google) A2DP vendor codec capabilities.
AOSP & Google Pixel Buds Pro has this implemented.

> ACL Data RX: Handle 256 flags 0x02 dlen 21       #419 [hci0] 26.905032
      Channel: 65 len 17 [PSM 25 mode Basic (0x00)] {chan 4}
      AVDTP: Get All Capabilities (0x0c) Response Accept (0x02) type 0x00 label 3 nosp 0
        Service Category: Media Transport (0x01)
        Service Category: Media Codec (0x07)
          Media Type: Audio (0x00)
          Media Codec: Non-A2DP (0xff)
            Vendor ID: Google (0x000000e0)
            Vendor Specific Codec ID: Opus (Google) (0x0001)
              Frequency: 0x80
                48000
              Frame Duration: 0x18
                10 ms
                20 ms
              Channel Mode: 0x07
                Mono
                Stereo
                Dual Mono
              Reserved: 0x60
        Service Category: Delay Reporting (0x08)


  Commit: 1c60eb02e6c3d0e639d8edb82c251caef2e41f9a
      https://github.com/bluez/bluez/commit/1c60eb02e6c3d0e639d8edb82c251caef2e41f9a
  Author: Pauli Virtanen <pav@xxxxxx>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M client/player.c
    M profiles/audio/a2dp-codecs.h

  Log Message:
  -----------
  client/player: parse Google's Opus A2DP vendor codec capabilities

Support parsing Opus (Google) A2DP vendor codec capabilities.

Transport /org/bluez/hci0/dev_B8_7B_D4_32_44_15/sep3/fd2
        UUID: 0000110a-0000-1000-8000-00805f9b34fb
        Codec: 0xff (255)
        Media Codec: Vendor Specific A2DP Codec
        Vendor ID 0x000000e0
        Vendor Specific Codec ID 0x0001
        Vendor Specific Data: 0x92
                Vendor Specific Value (Opus [Google])
                Frequencies: 48kHz
                Channel modes: Stereo
                Frame durations: 20 ms
        Device: /org/bluez/hci0/dev_B8_7B_D4_32_44_15
        State: idle
        Delay: 0x0898 (2200)
        Volume: 0x001e (30)
        Endpoint: /org/bluez/hci0/dev_B8_7B_D4_32_44_15/sep3


  Commit: cfbaa68e5134e636ca3f3c095bb2d86d1dc6401a
      https://github.com/bluez/bluez/commit/cfbaa68e5134e636ca3f3c095bb2d86d1dc6401a
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M tools/mgmt-tester.c

  Log Message:
  -----------
  mgmt-tester: Fix Read Ext Controller Info tests

This fixes Read Ext Controller Info now that BT_HS has been removed.


Compare: https://github.com/bluez/bluez/compare/de8c249f785d...cfbaa68e5134





[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