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:
parent
a7e7d87912
commit
f1bedd01c1
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue