1 /* 2 * WPA Supplicant - Scanning 3 * Copyright (c) 2003-2010, Jouni Malinen <j (at) w1.fi> 4 * 5 * This software may be distributed under the terms of the BSD license. 6 * See README for more details. 7 */ 8 9 #ifndef SCAN_H 10 #define SCAN_H 11 12 int wpa_supplicant_enabled_networks(struct wpa_supplicant *wpa_s); 13 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec); 14 int wpa_supplicant_delayed_sched_scan(struct wpa_supplicant *wpa_s, 15 int sec, int usec); 16 int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s); 17 void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s); 18 void wpa_supplicant_cancel_sched_scan(struct wpa_supplicant *wpa_s); 19 void wpa_supplicant_notify_scanning(struct wpa_supplicant *wpa_s, 20 int scanning); 21 struct wpa_driver_scan_params; 22 int wpa_supplicant_trigger_scan(struct wpa_supplicant *wpa_s, 23 struct wpa_driver_scan_params *params); 24 struct wpa_scan_results * 25 wpa_supplicant_get_scan_results(struct wpa_supplicant *wpa_s, 26 struct scan_info *info, int new_scan); 27 int wpa_supplicant_update_scan_results(struct wpa_supplicant *wpa_s); 28 const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u8 ie); 29 const u8 * wpa_scan_get_vendor_ie(const struct wpa_scan_res *res, 30 u32 vendor_type); 31 struct wpabuf * wpa_scan_get_vendor_ie_multi(const struct wpa_scan_res *res, 32 u32 vendor_type); 33 int wpa_supplicant_filter_bssid_match(struct wpa_supplicant *wpa_s, 34 const u8 *bssid); 35 void wpa_supplicant_update_scan_int(struct wpa_supplicant *wpa_s, int sec); 36 void scan_only_handler(struct wpa_supplicant *wpa_s, 37 struct wpa_scan_results *scan_res); 38 int wpas_scan_scheduled(struct wpa_supplicant *wpa_s); 39 40 #endif /* SCAN_H */ 41