diff options
Diffstat (limited to 'src/libwpactrl/wpactrl_selectnetwork.c')
-rw-r--r-- | src/libwpactrl/wpactrl_selectnetwork.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libwpactrl/wpactrl_selectnetwork.c b/src/libwpactrl/wpactrl_selectnetwork.c new file mode 100644 index 0000000..25842e4 --- /dev/null +++ b/src/libwpactrl/wpactrl_selectnetwork.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include <skalibs/uint32.h> +#include <bcnm/wpactrl.h> + +wparesponse_t wpactrl_selectnetwork (wpactrl_t *a, uint32_t id, tain_t *stamp) +{ + char buf[15 + UINT32_FMT] = "SELECT_NETWORK " ; + buf[15 + uint32_fmt(buf + 15, id)] = 0 ; + return wpactrl_command(a, buf, stamp) ; +} |