Skip to content

Commit

Permalink
controller/ble_ll_hci: fix ble_ll_hci_le_read_bufsize_v2 compilation
Browse files Browse the repository at this point in the history
ISO can be used without connection (for example for Auracast).
Then, g_ble_ll_data has no ACL members and compilation will fail.
  • Loading branch information
KKopyscinski committed Nov 15, 2023
1 parent d84b41e commit 06fe2a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nimble/controller/src/ble_ll_hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,14 @@ ble_ll_hci_le_read_bufsize_v2(uint8_t *rspbuf, uint8_t *rsplen)
{
struct ble_hci_le_rd_buf_size_v2_rp *rp = (void *) rspbuf;


#if MYNEWT_VAL(BLE_LL_ROLE_CENTRAL) || MYNEWT_VAL(BLE_LL_ROLE_PERIPHERAL)
rp->data_len = htole16(g_ble_ll_data.ll_acl_pkt_size);
rp->data_packets = g_ble_ll_data.ll_num_acl_pkts;
#else
rp->data_len = 0;
rp->data_packets = 0;
#endif
rp->iso_data_len = htole16(g_ble_ll_data.ll_iso_pkt_size);
rp->iso_data_packets = g_ble_ll_data.ll_num_iso_pkts;

Expand Down

0 comments on commit 06fe2a4

Please sign in to comment.