bluetooth: audio: broadcast source: Add missing check condition
There is no need to validate stream_param->data if it is NULL. Fixes failing PTS BAP/BSRC test cases. Signed-off-by: Magdalena Kasenberg <magdalena.kasenberg@codecoup.pl>
This commit is contained in:
parent
5f3a69fada
commit
dba205a2ce
1 changed files with 2 additions and 1 deletions
|
@ -594,7 +594,8 @@ static bool valid_broadcast_source_param(const struct bt_bap_broadcast_source_pa
|
|||
return false;
|
||||
}
|
||||
|
||||
CHECKIF(subgroup_param->codec_cfg->id == BT_HCI_CODING_FORMAT_LC3 &&
|
||||
CHECKIF(stream_param->data != NULL &&
|
||||
subgroup_param->codec_cfg->id == BT_HCI_CODING_FORMAT_LC3 &&
|
||||
!bt_audio_valid_ltv(stream_param->data, stream_param->data_len)) {
|
||||
LOG_DBG("subgroup_params[%zu].stream_params[%zu]->data not valid "
|
||||
"LTV",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue