]>
git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/autoscan.h
2 * WPA Supplicant - auto scan
3 * Copyright (c) 2012, Intel Corporation. All rights reserved.
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
12 struct wpa_supplicant
;
17 void * (*init
)(struct wpa_supplicant
*wpa_s
, const char *params
);
18 void (*deinit
)(void *priv
);
20 int (*notify_scan
)(void *priv
, struct wpa_scan_results
*scan_res
);
23 #ifdef CONFIG_AUTOSCAN
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
);
30 #else /* CONFIG_AUTOSCAN */
32 static inline int autoscan_init(struct wpa_supplicant
*wpa_s
, int req_scan
)
37 static inline void autoscan_deinit(struct wpa_supplicant
*wpa_s
)
41 static inline int autoscan_notify_scan(struct wpa_supplicant
*wpa_s
,
42 struct wpa_scan_results
*scan_res
)
47 #endif /* CONFIG_AUTOSCAN */
49 #endif /* AUTOSCAN_H */