1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #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
- int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan);
- void autoscan_deinit(struct wpa_supplicant *wpa_s);
- int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
- struct wpa_scan_results *scan_res);
- #ifdef CONFIG_AUTOSCAN_EXPONENTIAL
- extern const struct autoscan_ops autoscan_exponential_ops;
- #endif
- #ifdef CONFIG_AUTOSCAN_PERIODIC
- extern const struct autoscan_ops autoscan_periodic_ops;
- #endif
- #else
- static inline int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
- {
- 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
- #endif
|