Bluetooth: ISO: Remove wrong requirement for cc_len

The hci_le_setup_iso_data_path function required that if
the path->cc was set, the length could not be 0.

There is no reason why it should not be allowed to be 0
in that case.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-12-14 20:30:27 +01:00 committed by Carles Cufí
commit f1bedd01c1

View file

@ -207,8 +207,7 @@ static int hci_le_setup_iso_data_path(const struct bt_conn *iso, uint8_t dir,
dir == BT_HCI_DATAPATH_DIR_CTLR_TO_HOST,
"invalid ISO data path dir: %u", dir);
if ((path->cc == NULL && path->cc_len != 0) ||
(path->cc != NULL && path->cc_len == 0)) {
if ((path->cc == NULL && path->cc_len != 0)) {
LOG_DBG("Invalid ISO data path CC: %p %u", path->cc, path->cc_len);
return -EINVAL;