00001 /* 00002 * WPA Supplicant - Scanning 00003 * Copyright (c) 2003-2010, Jouni Malinen <j@w1.fi> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 as 00007 * published by the Free Software Foundation. 00008 * 00009 * Alternatively, this software may be distributed under the terms of BSD 00010 * license. 00011 * 00012 * See README and COPYING for more details. 00013 */ 00014 00015 #ifndef SCAN_H 00016 #define SCAN_H 00017 00018 int wpa_supplicant_enabled_networks(struct wpa_config *conf); 00019 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec); 00020 void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s); 00021 void wpa_supplicant_notify_scanning(struct wpa_supplicant *wpa_s, 00022 int scanning); 00023 struct wpa_driver_scan_params; 00024 int wpa_supplicant_trigger_scan(struct wpa_supplicant *wpa_s, 00025 struct wpa_driver_scan_params *params); 00026 struct wpa_scan_results * 00027 wpa_supplicant_get_scan_results(struct wpa_supplicant *wpa_s, 00028 struct scan_info *info, int new_scan); 00029 int wpa_supplicant_update_scan_results(struct wpa_supplicant *wpa_s); 00030 const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u8 ie); 00031 const u8 * wpa_scan_get_vendor_ie(const struct wpa_scan_res *res, 00032 u32 vendor_type); 00033 struct wpabuf * wpa_scan_get_vendor_ie_multi(const struct wpa_scan_res *res, 00034 u32 vendor_type); 00035 void wpa_scan_results_free(struct wpa_scan_results *res); 00036 00037 #endif /* SCAN_H */