summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_removenetwork.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwpactrl/wpactrl_removenetwork.c')
-rw-r--r--src/libwpactrl/wpactrl_removenetwork.c11
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) ;
+}