2 * libwpa_test - Test program for libwpa_client.* library linking
3 * Copyright (c) 2015, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
11 #include "common/wpa_ctrl.h"
13 int main(int argc, char *argv[])
15 struct wpa_ctrl *ctrl;
17 ctrl = wpa_ctrl_open("foo");
20 if (wpa_ctrl_attach(ctrl) == 0)
21 wpa_ctrl_detach(ctrl);
22 if (wpa_ctrl_pending(ctrl)) {
27 wpa_ctrl_recv(ctrl, buf, &len);