2 * WPA Supplicant - background scan and roaming interface
3 * Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
18 struct wpa_supplicant;
24 void * (*init)(struct wpa_supplicant *wpa_s, const char *params,
25 const struct wpa_ssid *ssid);
26 void (*deinit)(void *priv);
28 int (*notify_scan)(void *priv);
29 void (*notify_beacon_loss)(void *priv);
30 void (*notify_signal_change)(void *priv, int above);
35 int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
36 void bgscan_deinit(struct wpa_supplicant *wpa_s);
37 int bgscan_notify_scan(struct wpa_supplicant *wpa_s);
38 void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s);
39 void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s, int above);
41 #else /* CONFIG_BGSCAN */
43 static inline int bgscan_init(struct wpa_supplicant *wpa_s,
44 struct wpa_ssid *ssid)
49 static inline void bgscan_deinit(struct wpa_supplicant *wpa_s)
53 static inline int bgscan_notify_scan(struct wpa_supplicant *wpa_s)
58 static inline void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s)
62 static inline void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s,
67 #endif /* CONFIG_BGSCAN */