• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
12 struct wpa_supplicant;
13 
14 struct 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 
25 int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan);
26 void autoscan_deinit(struct wpa_supplicant *wpa_s);
27 int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
28 			 struct wpa_scan_results *scan_res);
29 
30 #else /* CONFIG_AUTOSCAN */
31 
autoscan_init(struct wpa_supplicant * wpa_s,int req_scan)32 static inline int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
33 {
34 	return 0;
35 }
36 
autoscan_deinit(struct wpa_supplicant * wpa_s)37 static inline void autoscan_deinit(struct wpa_supplicant *wpa_s)
38 {
39 }
40 
autoscan_notify_scan(struct wpa_supplicant * wpa_s,struct wpa_scan_results * scan_res)41 static 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 */
50