Skip to content

Commit 2660c17

Browse files
Thalleycarlescufi
authored andcommitted
Bluetooth: ISO: Set can_send/can_recv for broadcast channels
Set the can_send to true and can_recv to false for broadcaster. Set the can_send to false and can_recv to true for the sync receiver. Signed-off-by: Emil Gydesen <[email protected]>
1 parent b88b25a commit 2660c17

File tree

1 file changed

+6
-0
lines changed
  • subsys/bluetooth/host

1 file changed

+6
-0
lines changed

subsys/bluetooth/host/iso.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,9 @@ static void store_bis_broadcaster_info(const struct bt_hci_evt_le_big_complete *
20032003
/* Transform to n * 1.25ms */
20042004
broadcaster_info->pto = info->iso_interval * evt->pto;
20052005
broadcaster_info->max_pdu = sys_le16_to_cpu(evt->max_pdu);
2006+
2007+
info->can_send = true;
2008+
info->can_recv = false;
20062009
}
20072010

20082011
void hci_le_big_complete(struct net_buf *buf)
@@ -2178,6 +2181,9 @@ static void store_bis_sync_receiver_info(const struct bt_hci_evt_le_big_sync_est
21782181
/* Transform to n * 1.25ms */
21792182
receiver_info->pto = info->iso_interval * evt->pto;
21802183
receiver_info->max_pdu = sys_le16_to_cpu(evt->max_pdu);
2184+
2185+
info->can_send = false;
2186+
info->can_recv = true;
21812187
}
21822188

21832189
void hci_le_big_sync_established(struct net_buf *buf)

0 commit comments

Comments
 (0)