Searched refs:ack_pkt (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/tests/net/ieee802154/l2/src/ |
D | ieee802154_fake_driver.c | 84 struct net_pkt *ack_pkt; in fake_tx() local 86 ack_pkt = net_pkt_rx_alloc_with_buffer(iface, IEEE802154_ACK_PKT_LENGTH, AF_UNSPEC, in fake_tx() 88 if (!ack_pkt) { in fake_tx() 93 if (!ieee802154_create_ack_frame(iface, ack_pkt, ctx->ack_seq)) { in fake_tx() 95 net_pkt_unref(ack_pkt); in fake_tx() 99 ieee802154_handle_ack(iface, ack_pkt); in fake_tx() 100 net_pkt_unref(ack_pkt); in fake_tx()
|
D | ieee802154_test.c | 84 uint8_t ack_pkt[] = { variable 92 .pkt = ack_pkt, 93 .length = sizeof(ack_pkt), 96 .fc_seq = (struct ieee802154_fcf_seq *)ack_pkt,
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_b91.c | 211 struct net_pkt *ack_pkt; in b91_handle_ack() local 214 ack_pkt = net_pkt_rx_alloc_with_buffer(data.iface, B91_ACK_FRAME_LEN, in b91_handle_ack() 216 if (!ack_pkt) { in b91_handle_ack() 222 if (net_pkt_write(ack_pkt, data.rx_buffer + B91_PAYLOAD_OFFSET, in b91_handle_ack() 229 b91_update_rssi_and_lqi(ack_pkt); in b91_handle_ack() 232 net_pkt_cursor_init(ack_pkt); in b91_handle_ack() 235 if (ieee802154_handle_ack(data.iface, ack_pkt) != NET_OK) { in b91_handle_ack() 243 net_pkt_unref(ack_pkt); in b91_handle_ack()
|
D | ieee802154_kw41z.c | 580 struct net_pkt *ack_pkt; in handle_ack() local 583 ack_pkt = net_pkt_rx_alloc_with_buffer(kw41z->iface, ACK_FRAME_LEN, in handle_ack() 585 if (!ack_pkt) { in handle_ack() 596 if (net_pkt_write(ack_pkt, ack_psdu, sizeof(ack_psdu)) < 0) { in handle_ack() 602 (void)net_pkt_set_ieee802154_lqi(ack_pkt, 80); in handle_ack() 603 (void)net_pkt_set_ieee802154_rssi_dbm(ack_pkt, -40); in handle_ack() 605 net_pkt_cursor_init(ack_pkt); in handle_ack() 607 if (ieee802154_handle_ack(kw41z->iface, ack_pkt) != NET_OK) { in handle_ack() 612 net_pkt_unref(ack_pkt); in handle_ack()
|
D | ieee802154_nrf5.c | 408 struct net_pkt *ack_pkt; in handle_ack() local 428 ack_pkt = net_pkt_rx_alloc_with_buffer(nrf5_radio->iface, ack_len, in handle_ack() 430 if (!ack_pkt) { in handle_ack() 439 if (net_pkt_write(ack_pkt, nrf5_radio->ack_frame.psdu + 1, in handle_ack() 446 net_pkt_set_ieee802154_lqi(ack_pkt, nrf5_radio->ack_frame.lqi); in handle_ack() 447 net_pkt_set_ieee802154_rssi_dbm(ack_pkt, nrf5_radio->ack_frame.rssi); in handle_ack() 450 net_pkt_set_timestamp_ns(ack_pkt, nrf5_radio->ack_frame.time * NSEC_PER_USEC); in handle_ack() 453 net_pkt_cursor_init(ack_pkt); in handle_ack() 455 if (ieee802154_handle_ack(nrf5_radio->iface, ack_pkt) != NET_OK) { in handle_ack() 460 net_pkt_unref(ack_pkt); in handle_ack()
|