2010-01-03 11:48:11 -05:00
|
|
|
/*
|
|
|
|
* WPA Supplicant - Scanning
|
|
|
|
* Copyright (c) 2003-2010, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SCAN_H
|
|
|
|
#define SCAN_H
|
|
|
|
|
|
|
|
int wpa_supplicant_enabled_networks(struct wpa_config *conf);
|
|
|
|
void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec);
|
2011-09-27 15:21:38 -04:00
|
|
|
int wpa_supplicant_delayed_sched_scan(struct wpa_supplicant *wpa_s,
|
|
|
|
int sec, int usec);
|
2011-09-27 15:21:29 -04:00
|
|
|
int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s);
|
2010-01-03 11:48:11 -05:00
|
|
|
void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s);
|
2011-09-27 15:21:29 -04:00
|
|
|
void wpa_supplicant_cancel_sched_scan(struct wpa_supplicant *wpa_s);
|
2010-01-03 11:48:11 -05:00
|
|
|
void wpa_supplicant_notify_scanning(struct wpa_supplicant *wpa_s,
|
|
|
|
int scanning);
|
|
|
|
struct wpa_driver_scan_params;
|
|
|
|
int wpa_supplicant_trigger_scan(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_driver_scan_params *params);
|
|
|
|
struct wpa_scan_results *
|
|
|
|
wpa_supplicant_get_scan_results(struct wpa_supplicant *wpa_s,
|
|
|
|
struct scan_info *info, int new_scan);
|
|
|
|
int wpa_supplicant_update_scan_results(struct wpa_supplicant *wpa_s);
|
2010-01-03 13:27:32 -05:00
|
|
|
const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u8 ie);
|
2010-01-03 11:48:11 -05:00
|
|
|
const u8 * wpa_scan_get_vendor_ie(const struct wpa_scan_res *res,
|
|
|
|
u32 vendor_type);
|
|
|
|
struct wpabuf * wpa_scan_get_vendor_ie_multi(const struct wpa_scan_res *res,
|
|
|
|
u32 vendor_type);
|
2010-05-26 10:16:14 -04:00
|
|
|
struct wpabuf * wpa_scan_get_vendor_ie_multi_beacon(
|
|
|
|
const struct wpa_scan_res *res, u32 vendor_type);
|
2010-01-03 11:48:11 -05:00
|
|
|
|
|
|
|
#endif /* SCAN_H */
|