]> git.ipfire.org Git - thirdparty/hostap.git/blame - wpa_supplicant/autoscan.h
Android: Add Wi-Fi Display into the makefile
[thirdparty/hostap.git] / wpa_supplicant / autoscan.h
CommitLineData
7c865c68
TB
1/*
2 * WPA Supplicant - auto scan
3 * Copyright (c) 2012, Intel Corporation. All rights reserved.
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#ifndef AUTOSCAN_H
10#define AUTOSCAN_H
11
12struct wpa_supplicant;
13
14struct autoscan_ops {
15 const char *name;
16
17 void * (*init)(struct wpa_supplicant *wpa_s, const char *params);
18 void (*deinit)(void *priv);
19
20 int (*notify_scan)(void *priv, struct wpa_scan_results *scan_res);
21};
22
23#ifdef CONFIG_AUTOSCAN
24
99218999 25int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan);
7c865c68
TB
26void autoscan_deinit(struct wpa_supplicant *wpa_s);
27int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
28 struct wpa_scan_results *scan_res);
29
30#else /* CONFIG_AUTOSCAN */
31
99218999 32static inline int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
7c865c68
TB
33{
34 return 0;
35}
36
37static inline void autoscan_deinit(struct wpa_supplicant *wpa_s)
38{
39}
40
41static inline int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
42 struct wpa_scan_results *scan_res)
43{
44 return 0;
45}
46
47#endif /* CONFIG_AUTOSCAN */
48
49#endif /* AUTOSCAN_H */