/* Is scheduled to transmit a frame after a delay  */
static void sendframe_task_handler(struct hndrte_timer *t)
/* Is scheduled to transmit a frame after a delay  */
static void sendframe_task_handler(struct hndrte_timer *t)
{
    struct tx_task *task = (struct tx_task *) t->data;
    if (task->txrepetitions != 0 && task->txperiodicity > 0) {
        sendframe_repeatedly(task);
    } else {
        sendframe(task->wlc, task->p, task->fifo, task->rate);
        free(task);
    }
}