Skip to content

Commit 32e8392

Browse files
Thalleycarlescufi
authored andcommitted
Bluetooth: BAP: Move TX guard to not cover verify funcs
Move the BT_AUDIO_TX guard so that it does not cover the verification functions for valid_codec and qos, as they are also relevant for receivers to verify what remote devices send. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
1 parent 1ea132d commit 32e8392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/audio/bap_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ int bt_bap_ep_get_info(const struct bt_bap_ep *ep, struct bt_bap_ep_info *info)
134134
return 0;
135135
}
136136

137-
#if defined(CONFIG_BT_AUDIO_TX)
138137
enum bt_bap_ascs_reason bt_audio_verify_qos(const struct bt_codec_qos *qos)
139138
{
140139
if (qos->interval < BT_ISO_SDU_INTERVAL_MIN ||
@@ -226,6 +225,7 @@ bool bt_audio_valid_codec(const struct bt_codec *codec)
226225
return true;
227226
}
228227

228+
#if defined(CONFIG_BT_AUDIO_TX)
229229
int bt_bap_stream_send(struct bt_bap_stream *stream, struct net_buf *buf,
230230
uint16_t seq_num, uint32_t ts)
231231
{

0 commit comments

Comments
 (0)