wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
autoscan.h
Go to the documentation of this file.
1 
5 #ifndef AUTOSCAN_H
6 #define AUTOSCAN_H
7 
8 struct wpa_supplicant;
9 
10 struct autoscan_ops {
11  const char *name;
12 
13  void * (*init)(struct wpa_supplicant *wpa_s, const char *params);
14  void (*deinit)(void *priv);
15 
16  int (*notify_scan)(void *priv, struct wpa_scan_results *scan_res);
17 };
18 
19 #ifdef CONFIG_AUTOSCAN
20 
21 int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan);
22 void autoscan_deinit(struct wpa_supplicant *wpa_s);
23 int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
24  struct wpa_scan_results *scan_res);
25 
26 #else /* CONFIG_AUTOSCAN */
27 
28 static inline int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
29 {
30  return 0;
31 }
32 
33 static inline void autoscan_deinit(struct wpa_supplicant *wpa_s)
34 {
35 }
36 
37 static inline int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
38  struct wpa_scan_results *scan_res)
39 {
40  return 0;
41 }
42 
43 #endif /* CONFIG_AUTOSCAN */
44 
45 #endif /* AUTOSCAN_H */
Definition: autoscan.h:10
Scan results.
Definition: driver.h:277
Internal data for wpa_supplicant interface.
Definition: wpa_supplicant_i.h:451