2 * WPA Supplicant - background scan and roaming interface
3 * Copyright (c) 2009-2010, 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 struct wpa_supplicant;
18 void * (*init)(struct wpa_supplicant *wpa_s, const char *params,
19 const struct wpa_ssid *ssid);
20 void (*deinit)(void *priv);
22 int (*notify_scan)(void *priv, struct wpa_scan_results *scan_res);
23 void (*notify_beacon_loss)(void *priv);
24 void (*notify_signal_change)(void *priv, int above,
32 int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
34 void bgscan_deinit(struct wpa_supplicant *wpa_s);
35 int bgscan_notify_scan(struct wpa_supplicant *wpa_s,
36 struct wpa_scan_results *scan_res);
37 void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s);
38 void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s, int above,
39 int current_signal, int current_noise,
42 /* Available bgscan modules */
44 #ifdef CONFIG_BGSCAN_SIMPLE
45 extern const struct bgscan_ops bgscan_simple_ops;
46 #endif /* CONFIG_BGSCAN_SIMPLE */
47 #ifdef CONFIG_BGSCAN_LEARN
48 extern const struct bgscan_ops bgscan_learn_ops;
49 #endif /* CONFIG_BGSCAN_LEARN */
51 #else /* CONFIG_BGSCAN */
53 static inline int bgscan_init(struct wpa_supplicant *wpa_s,
54 struct wpa_ssid *ssid, const char name)
59 static inline void bgscan_deinit(struct wpa_supplicant *wpa_s)
63 static inline int bgscan_notify_scan(struct wpa_supplicant *wpa_s,
64 struct wpa_scan_results *scan_res)
69 static inline void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s)
73 static inline void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s,
74 int above, int current_signal,
80 #endif /* CONFIG_BGSCAN */