From 98805a29f5379103a9645aae862f8d00298a1243 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 9 Oct 2024 12:41:58 +0200 Subject: [PATCH] Bluetooth: BAP: Add BT_AUDIO_RTN_PREF_NONE Add BT_AUDIO_RTN_PREF_NONE which indicates no preference from the server for number of retransmissions chosen by the client. Signed-off-by: Emil Gydesen --- include/zephyr/bluetooth/audio/audio.h | 2 ++ include/zephyr/bluetooth/audio/bap.h | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/zephyr/bluetooth/audio/audio.h b/include/zephyr/bluetooth/audio/audio.h index 1d052e382839..928e33f88e2f 100644 --- a/include/zephyr/bluetooth/audio/audio.h +++ b/include/zephyr/bluetooth/audio/audio.h @@ -47,6 +47,8 @@ extern "C" { #define BT_AUDIO_PD_PREF_NONE 0x000000U /** Maximum presentation delay in microseconds */ #define BT_AUDIO_PD_MAX 0xFFFFFFU +/** Indicates that the unicast server does not have a preference for any retransmission number */ +#define BT_AUDIO_RTN_PREF_NONE 0xFFU /** Maximum size of the broadcast code in octets */ #define BT_AUDIO_BROADCAST_CODE_SIZE 16 diff --git a/include/zephyr/bluetooth/audio/bap.h b/include/zephyr/bluetooth/audio/bap.h index c9c8d4fdf439..73433035e823 100644 --- a/include/zephyr/bluetooth/audio/bap.h +++ b/include/zephyr/bluetooth/audio/bap.h @@ -260,7 +260,11 @@ struct bt_bap_qos_cfg_pref { */ uint8_t phy; - /** Preferred Retransmission Number */ + /** + * @brief Preferred Retransmission Number + * + * @ref BT_AUDIO_RTN_PREF_NONE indicates no preference. + */ uint8_t rtn; /**