/* Support function for RXFIFO_RELEASE macro. 
This function releases a node by returning it to the FIFO.  */
void* ull_rxfifo_release(uint8_t s, uint8_t n, uint8_t f, uint8_t *l, uint8_t *m, memq_link_t *link, struct node_rx_hdr *rx)
/* Support function for RXFIFO_RELEASE macro. 
This function releases a node by returning it to the FIFO.  */
void* ull_rxfifo_release(uint8_t s, uint8_t n, uint8_t f, uint8_t *l, uint8_t *m, memq_link_t *link, struct node_rx_hdr *rx)
{
	uint8_t idx;
	if (!mfifo_enqueue_idx_get(n, f, *l, &idx)) {
		return NULL;
	}
	rx->link = link;
	mfifo_by_idx_enqueue(m, s, idx, rx, l);
	return rx;
}