diff --git a/include/bluetooth/iso.h b/include/bluetooth/iso.h index f3bd88f479d..1caa162be52 100644 --- a/include/bluetooth/iso.h +++ b/include/bluetooth/iso.h @@ -199,7 +199,7 @@ struct bt_iso_recv_info { /** Opaque type representing an Connected Isochronous Group (CIG). */ struct bt_iso_cig; -struct bt_iso_cig_create_param { +struct bt_iso_cig_param { /** @brief Array of pointers to CIS channels */ struct bt_iso_chan **cis_channels; @@ -515,7 +515,7 @@ int bt_iso_server_register(struct bt_iso_server *server); * * @return 0 in case of success or negative value in case of error. */ -int bt_iso_cig_create(const struct bt_iso_cig_create_param *param, +int bt_iso_cig_create(const struct bt_iso_cig_param *param, struct bt_iso_cig **out_cig); /** @brief Terminates a CIG as a central diff --git a/samples/bluetooth/central_iso/src/main.c b/samples/bluetooth/central_iso/src/main.c index 7b53b04a3c9..e557eb741e0 100644 --- a/samples/bluetooth/central_iso/src/main.c +++ b/samples/bluetooth/central_iso/src/main.c @@ -217,7 +217,7 @@ void main(void) { int err; struct bt_iso_chan *channels[1]; - struct bt_iso_cig_create_param param; + struct bt_iso_cig_param param; struct bt_iso_cig *cig; err = bt_enable(NULL); diff --git a/samples/bluetooth/iso_connected_benchmark/src/main.c b/samples/bluetooth/iso_connected_benchmark/src/main.c index 90eb1687f5d..c3e067140bb 100644 --- a/samples/bluetooth/iso_connected_benchmark/src/main.c +++ b/samples/bluetooth/iso_connected_benchmark/src/main.c @@ -86,7 +86,7 @@ static struct bt_iso_chan_qos iso_qos = { .rx = &iso_rx_qos, }; -static struct bt_iso_cig_create_param cig_create_param = { +static struct bt_iso_cig_param cig_create_param = { .interval = DEFAULT_CIS_INTERVAL_US, /* in microseconds */ .latency = DEFAULT_CIS_LATENCY_MS, /* milliseconds */ .sca = BT_GAP_SCA_UNKNOWN, diff --git a/subsys/bluetooth/host/iso.c b/subsys/bluetooth/host/iso.c index 686af529189..85dfe84339f 100644 --- a/subsys/bluetooth/host/iso.c +++ b/subsys/bluetooth/host/iso.c @@ -993,7 +993,7 @@ struct bt_conn *bt_conn_add_iso(struct bt_conn *acl) } static struct net_buf *hci_le_set_cig_params(const struct bt_iso_cig *cig, - const struct bt_iso_cig_create_param *param) + const struct bt_iso_cig_param *param) { struct bt_hci_cp_le_set_cig_params *req; struct bt_hci_cis_params *cis_param; @@ -1088,7 +1088,8 @@ static struct bt_iso_cig *get_free_cig(void) return NULL; } -static int cig_init_cis(struct bt_iso_cig *cig, const struct bt_iso_cig_create_param *param) +static int cig_init_cis(struct bt_iso_cig *cig, + const struct bt_iso_cig_param *param) { for (uint8_t i = 0; i < param->num_cis; i++) { struct bt_iso_chan *cis = param->cis_channels[i]; @@ -1127,7 +1128,7 @@ static void cleanup_cig(struct bt_iso_cig *cig) memset(cig, 0, sizeof(*cig)); } -int bt_iso_cig_create(const struct bt_iso_cig_create_param *param, +int bt_iso_cig_create(const struct bt_iso_cig_param *param, struct bt_iso_cig **out_cig) { int err; diff --git a/subsys/bluetooth/shell/iso.c b/subsys/bluetooth/shell/iso.c index 4ce3f5e2d8b..610767e0b16 100644 --- a/subsys/bluetooth/shell/iso.c +++ b/subsys/bluetooth/shell/iso.c @@ -136,7 +136,7 @@ static int cmd_listen(const struct shell *sh, size_t argc, char *argv[]) static int cmd_cig_create(const struct shell *sh, size_t argc, char *argv[]) { int err; - struct bt_iso_cig_create_param param; + struct bt_iso_cig_param param; struct bt_iso_chan *chans[CIS_ISO_CHAN_COUNT]; if (cig != NULL) {