diff options
Diffstat (limited to 'src/libwpactrl/wpactrl_xchg_start.c')
-rw-r--r-- | src/libwpactrl/wpactrl_xchg_start.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libwpactrl/wpactrl_xchg_start.c b/src/libwpactrl/wpactrl_xchg_start.c new file mode 100644 index 0000000..3b45f3e --- /dev/null +++ b/src/libwpactrl/wpactrl_xchg_start.c @@ -0,0 +1,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 ; +} |