@@ -168,7 +168,7 @@ struct net_buf *bt_iso_create_pdu_timeout(struct net_buf_pool *pool,
168168 pool = & iso_tx_pool ;
169169 }
170170
171- reserve += sizeof (struct bt_hci_iso_data_hdr );
171+ reserve += sizeof (struct bt_hci_iso_sdu_hdr );
172172
173173#if defined(CONFIG_NET_BUF_LOG )
174174 return bt_conn_create_pdu_timeout_debug (pool , reserve , timeout , func ,
@@ -585,7 +585,7 @@ struct net_buf *bt_iso_get_rx(k_timeout_t timeout)
585585
586586void bt_iso_recv (struct bt_conn * iso , struct net_buf * buf , uint8_t flags )
587587{
588- struct bt_hci_iso_data_hdr * hdr ;
588+ struct bt_hci_iso_sdu_hdr * hdr ;
589589 struct bt_iso_chan * chan ;
590590 uint8_t pb , ts ;
591591 uint16_t len , pkt_seq_no ;
@@ -609,12 +609,12 @@ void bt_iso_recv(struct bt_conn *iso, struct net_buf *buf, uint8_t flags)
609609 * of an SDU or a complete SDU.
610610 */
611611 if (ts ) {
612- struct bt_hci_iso_ts_data_hdr * ts_hdr ;
612+ struct bt_hci_iso_sdu_ts_hdr * ts_hdr ;
613613
614614 ts_hdr = net_buf_pull_mem (buf , sizeof (* ts_hdr ));
615615 iso_info (buf )-> ts = sys_le32_to_cpu (ts_hdr -> ts );
616616
617- hdr = & ts_hdr -> data ;
617+ hdr = & ts_hdr -> sdu ;
618618 iso_info (buf )-> flags |= BT_ISO_FLAGS_TS ;
619619 } else {
620620 hdr = net_buf_pull_mem (buf , sizeof (* hdr ));
@@ -791,11 +791,11 @@ static int validate_send(const struct bt_iso_chan *chan, const struct net_buf *b
791791
792792int bt_iso_chan_send (struct bt_iso_chan * chan , struct net_buf * buf , uint16_t seq_num )
793793{
794- struct bt_hci_iso_data_hdr * hdr ;
794+ struct bt_hci_iso_sdu_hdr * hdr ;
795795 struct bt_conn * iso_conn ;
796796 int err ;
797797
798- err = validate_send (chan , buf , BT_HCI_ISO_DATA_HDR_SIZE );
798+ err = validate_send (chan , buf , BT_HCI_ISO_SDU_HDR_SIZE );
799799 if (err != 0 ) {
800800 return err ;
801801 }
@@ -815,11 +815,11 @@ int bt_iso_chan_send(struct bt_iso_chan *chan, struct net_buf *buf, uint16_t seq
815815int bt_iso_chan_send_ts (struct bt_iso_chan * chan , struct net_buf * buf , uint16_t seq_num ,
816816 uint32_t ts )
817817{
818- struct bt_hci_iso_ts_data_hdr * hdr ;
818+ struct bt_hci_iso_sdu_ts_hdr * hdr ;
819819 struct bt_conn * iso_conn ;
820820 int err ;
821821
822- err = validate_send (chan , buf , BT_HCI_ISO_TS_DATA_HDR_SIZE );
822+ err = validate_send (chan , buf , BT_HCI_ISO_SDU_TS_HDR_SIZE );
823823 if (err != 0 ) {
824824 return err ;
825825 }
@@ -828,8 +828,8 @@ int bt_iso_chan_send_ts(struct bt_iso_chan *chan, struct net_buf *buf, uint16_t
828828
829829 hdr = net_buf_push (buf , sizeof (* hdr ));
830830 hdr -> ts = ts ;
831- hdr -> data .sn = sys_cpu_to_le16 (seq_num );
832- hdr -> data .slen = sys_cpu_to_le16 (
831+ hdr -> sdu .sn = sys_cpu_to_le16 (seq_num );
832+ hdr -> sdu .slen = sys_cpu_to_le16 (
833833 bt_iso_pkt_len_pack (net_buf_frags_len (buf ) - sizeof (* hdr ), BT_ISO_DATA_VALID ));
834834
835835 iso_conn = chan -> iso ;
0 commit comments