aboutsummaryrefslogtreecommitdiff
path: root/contrib/wpa_supplicant/config.h
blob: 13deb3e3cb586c0aebebd3c258d1420b1cb60033 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef CONFIG_H
#define CONFIG_H

#ifdef CONFIG_CTRL_IFACE
#ifndef CONFIG_CTRL_IFACE_UDP
#include <grp.h>
#endif /* CONFIG_CTRL_IFACE_UDP */
#endif /* CONFIG_CTRL_IFACE */

#include "config_ssid.h"

struct wpa_config {
	struct wpa_ssid *ssid; /* global network list */
	struct wpa_ssid **pssid; /* per priority network lists (in priority
				  * order) */
	int num_prio; /* number of different priorities */
	int eapol_version;
	int ap_scan;
	char *ctrl_interface; /* directory for UNIX domain sockets */
#ifdef CONFIG_CTRL_IFACE
#ifndef CONFIG_CTRL_IFACE_UDP
	gid_t ctrl_interface_gid;
#endif /* CONFIG_CTRL_IFACE_UDP */
	int ctrl_interface_gid_set;
#endif /* CONFIG_CTRL_IFACE */
	int fast_reauth;
};


struct wpa_config * wpa_config_read(const char *config_file);
void wpa_config_free(struct wpa_config *ssid);

#endif /* CONFIG_H */