summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_xchg_start.c
blob: 3b45f3eb39074262d541c0af8887f3ba3221cfd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <errno.h>
#include <skalibs/tai.h>
#include <bcnm/wpactrl.h>

int wpactrl_xchg_start (wpactrl_t *a, wpactrl_xchg_t *dt)
{
  if (!dt->n) return (errno = EINVAL, 0) ;
  if (!wpactrl_filter_add(a, dt->tab[0].filter)) return 0 ;
  dt->i = 0 ;
  dt->status = EAGAIN ;
  return 1 ;
}