Home
last modified time | relevance | path

Searched refs:att_packet (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/
Dpeer.c539 struct net_buf *att_packet = alloc_l2cap_pdu(); in gatt_notify_without_last_fragment() local
542 net_buf_add_u8(att_packet, BT_ATT_OP_NOTIFY); in gatt_notify_without_last_fragment()
543 net_buf_add_le16(att_packet, handle); in gatt_notify_without_last_fragment()
544 net_buf_add_mem(att_packet, data, sizeof(data)); in gatt_notify_without_last_fragment()
551 for (size_t i = 0; att_packet->len > on_air_size; i++) { in gatt_notify_without_last_fragment()
557 size_t frag_len = MIN(att_packet->len, on_air_size); in gatt_notify_without_last_fragment()
561 push_l2cap_pdu_header(buf, att_packet->len, BT_L2CAP_CID_ATT); in gatt_notify_without_last_fragment()
567 net_buf_pull_mem(att_packet, frag_len), in gatt_notify_without_last_fragment()
570 LOG_DBG("send ACL frag %d (%d bytes, remaining %d)", i, buf->len, att_packet->len); in gatt_notify_without_last_fragment()
577 net_buf_unref(att_packet); in gatt_notify_without_last_fragment()