summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_selectnetwork.c
blob: 25842e4abcef2815688622b6c41add2c6857802e (plain)
1
2
3
4
5
6
7
8
9
10
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) ;
}