diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-08-04 22:46:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-08-04 22:46:45 +0000 |
commit | babf43abf301d072192bda1f72a47440c354b072 (patch) | |
tree | d917d33ebb97d2b783e163f299b360be4f5b3a0a /src/libwpactrl/wpactrl_removenetwork.c | |
parent | 69099d84949a8044fdfc74e9d7ff6b9e57fc0bcd (diff) | |
download | bcnm-babf43abf301d072192bda1f72a47440c354b072.tar.xz |
Add the higher layer of libwpactrl
Diffstat (limited to 'src/libwpactrl/wpactrl_removenetwork.c')
-rw-r--r-- | src/libwpactrl/wpactrl_removenetwork.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libwpactrl/wpactrl_removenetwork.c b/src/libwpactrl/wpactrl_removenetwork.c new file mode 100644 index 0000000..f943b72 --- /dev/null +++ b/src/libwpactrl/wpactrl_removenetwork.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include <skalibs/uint32.h> +#include <bcnm/wpactrl.h> + +wparesponse_t wpactrl_removenetwork (wpactrl_t *a, uint32_t id, tain_t *stamp) +{ + char buf[15 + UINT32_FMT] = "REMOVE_NETWORK " ; + buf[15 + uint32_fmt(buf + 15, id)] = 0 ; + return wpactrl_command(a, buf, stamp) ; +} |