]>
git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/main_none.c
2 * WPA Supplicant / Example program entrypoint
3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
12 #include "wpa_supplicant_i.h"
14 int main(int argc
, char *argv
[])
16 struct wpa_interface iface
;
18 struct wpa_params params
;
19 struct wpa_global
*global
;
21 memset(¶ms
, 0, sizeof(params
));
22 params
.wpa_debug_level
= MSG_INFO
;
24 global
= wpa_supplicant_init(¶ms
);
28 memset(&iface
, 0, sizeof(iface
));
29 /* TODO: set interface parameters */
31 if (wpa_supplicant_add_iface(global
, &iface
) == NULL
)
35 exitcode
= wpa_supplicant_run(global
);
37 wpa_supplicant_deinit(global
);