uint8_t len)
{
const struct bt_hci_cmd_le_create_big *cmd = data;
+ const struct bt_hci_bis *bis = &cmd->bis;
int i;
for (i = 0; i < cmd->num_bis; i++) {
- const struct bt_hci_bis *bis = &cmd->bis[i];
struct btdev_conn *conn;
struct {
struct bt_hci_evt_le_big_complete evt;
uint8_t handle;
uint8_t adv_handle;
uint8_t num_bis;
- struct bt_hci_bis bis[0];
+ struct bt_hci_bis bis;
} __attribute__ ((packed));
#define BT_HCI_CMD_LE_CREATE_BIG_TEST 0x2069
print_reason(cmd->reason);
}
-static void print_bis(const void *data, int i)
+static void print_bis(const struct bt_hci_bis *bis)
{
- const struct bt_hci_bis *bis = data;
-
print_usec_interval("SDU Interval", bis->sdu_interval);
print_field("Maximum SDU size: %u", le16_to_cpu(bis->sdu));
print_field("Maximum Latency: %u ms (0x%4.4x)",
print_field("Handle: 0x%2.2x", cmd->handle);
print_field("Advertising Handle: 0x%2.2x", cmd->adv_handle);
print_field("Number of BIS: %u", cmd->num_bis);
-
- size -= sizeof(*cmd);
-
- print_list(cmd->bis, size, cmd->num_bis, sizeof(*cmd->bis), print_bis);
+ print_bis(&cmd->bis);
}
static void print_bis_test(const void *data, int i)