2012-06-26 11:55:41 -04:00
|
|
|
/*
|
|
|
|
* WPA Supplicant - auto scan
|
|
|
|
* Copyright (c) 2012, Intel Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AUTOSCAN_H
|
|
|
|
#define AUTOSCAN_H
|
|
|
|
|
|
|
|
struct wpa_supplicant;
|
|
|
|
|
|
|
|
struct autoscan_ops {
|
|
|
|
const char *name;
|
|
|
|
|
|
|
|
void * (*init)(struct wpa_supplicant *wpa_s, const char *params);
|
|
|
|
void (*deinit)(void *priv);
|
|
|
|
|
|
|
|
int (*notify_scan)(void *priv, struct wpa_scan_results *scan_res);
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef CONFIG_AUTOSCAN
|
|
|
|
|
2012-06-26 12:52:46 -04:00
|
|
|
int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan);
|
2012-06-26 11:55:41 -04:00
|
|
|
void autoscan_deinit(struct wpa_supplicant *wpa_s);
|
|
|
|
int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_scan_results *scan_res);
|
|
|
|
|
|
|
|
#else /* CONFIG_AUTOSCAN */
|
|
|
|
|
2012-06-26 12:52:46 -04:00
|
|
|
static inline int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
|
2012-06-26 11:55:41 -04:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void autoscan_deinit(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_scan_results *scan_res)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_AUTOSCAN */
|
|
|
|
|
|
|
|
#endif /* AUTOSCAN_H */
|