blob: 2aa0a8be0e4d705f68f732e5c457c3ef4ffbfe22 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/*
2 * WPA Supplicant - Scanning
3 * Copyright (c) 2003-2014, Jouni Malinen <j@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
12int wpa_supplicant_enabled_networks(struct wpa_supplicant *wpa_s);
13void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec);
14int wpa_supplicant_delayed_sched_scan(struct wpa_supplicant *wpa_s,
15 int sec, int usec);
16int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s);
17void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s);
18void wpa_supplicant_cancel_delayed_sched_scan(struct wpa_supplicant *wpa_s);
19void wpa_supplicant_cancel_sched_scan(struct wpa_supplicant *wpa_s);
20void wpa_supplicant_notify_scanning(struct wpa_supplicant *wpa_s,
21 int scanning);
22struct wpa_driver_scan_params;
23int wpa_supplicant_trigger_scan(struct wpa_supplicant *wpa_s,
24 struct wpa_driver_scan_params *params);
25struct wpa_scan_results *
26wpa_supplicant_get_scan_results(struct wpa_supplicant *wpa_s,
27 struct scan_info *info, int new_scan);
28int wpa_supplicant_update_scan_results(struct wpa_supplicant *wpa_s);
29const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u8 ie);
30const u8 * wpa_scan_get_vendor_ie(const struct wpa_scan_res *res,
31 u32 vendor_type);
32const u8 * wpa_scan_get_vendor_ie_beacon(const struct wpa_scan_res *res,
33 u32 vendor_type);
34struct wpabuf * wpa_scan_get_vendor_ie_multi(const struct wpa_scan_res *res,
35 u32 vendor_type);
36int wpa_supplicant_filter_bssid_match(struct wpa_supplicant *wpa_s,
37 const u8 *bssid);
38void wpa_supplicant_update_scan_int(struct wpa_supplicant *wpa_s, int sec);
39void scan_only_handler(struct wpa_supplicant *wpa_s,
40 struct wpa_scan_results *scan_res);
41int wpas_scan_scheduled(struct wpa_supplicant *wpa_s);
42struct wpa_driver_scan_params *
43wpa_scan_clone_params(const struct wpa_driver_scan_params *src);
44void wpa_scan_free_params(struct wpa_driver_scan_params *params);
45int wpas_start_pno(struct wpa_supplicant *wpa_s);
46int wpas_stop_pno(struct wpa_supplicant *wpa_s);
47void wpas_scan_reset_sched_scan(struct wpa_supplicant *wpa_s);
48void wpas_scan_restart_sched_scan(struct wpa_supplicant *wpa_s);
49
50void wpas_mac_addr_rand_scan_clear(struct wpa_supplicant *wpa_s,
51 unsigned int type);
52int wpas_mac_addr_rand_scan_set(struct wpa_supplicant *wpa_s,
53 unsigned int type, const u8 *addr,
54 const u8 *mask);
55int wpas_abort_ongoing_scan(struct wpa_supplicant *wpa_s);
56void filter_scan_res(struct wpa_supplicant *wpa_s,
57 struct wpa_scan_results *res);
58void scan_snr(struct wpa_scan_res *res);
59void scan_est_throughput(struct wpa_supplicant *wpa_s,
60 struct wpa_scan_res *res);
61void wpa_supplicant_set_default_scan_ies(struct wpa_supplicant *wpa_s);
62
63#endif /* SCAN_H */