scan.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  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. #ifndef SCAN_H
  9. #define SCAN_H
  10. int wpa_supplicant_enabled_networks(struct wpa_supplicant *wpa_s);
  11. void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec);
  12. int wpa_supplicant_delayed_sched_scan(struct wpa_supplicant *wpa_s,
  13. int sec, int usec);
  14. int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s);
  15. void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s);
  16. void wpa_supplicant_cancel_delayed_sched_scan(struct wpa_supplicant *wpa_s);
  17. void wpa_supplicant_cancel_sched_scan(struct wpa_supplicant *wpa_s);
  18. void wpa_supplicant_notify_scanning(struct wpa_supplicant *wpa_s,
  19. int scanning);
  20. struct wpa_driver_scan_params;
  21. int wpa_supplicant_trigger_scan(struct wpa_supplicant *wpa_s,
  22. struct wpa_driver_scan_params *params);
  23. struct wpa_scan_results *
  24. wpa_supplicant_get_scan_results(struct wpa_supplicant *wpa_s,
  25. struct scan_info *info, int new_scan);
  26. int wpa_supplicant_update_scan_results(struct wpa_supplicant *wpa_s);
  27. const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u8 ie);
  28. const u8 * wpa_scan_get_vendor_ie(const struct wpa_scan_res *res,
  29. u32 vendor_type);
  30. const u8 * wpa_scan_get_vendor_ie_beacon(const struct wpa_scan_res *res,
  31. u32 vendor_type);
  32. struct wpabuf * wpa_scan_get_vendor_ie_multi(const struct wpa_scan_res *res,
  33. u32 vendor_type);
  34. int wpa_supplicant_filter_bssid_match(struct wpa_supplicant *wpa_s,
  35. const u8 *bssid);
  36. void wpa_supplicant_update_scan_int(struct wpa_supplicant *wpa_s, int sec);
  37. void scan_only_handler(struct wpa_supplicant *wpa_s,
  38. struct wpa_scan_results *scan_res);
  39. int wpas_scan_scheduled(struct wpa_supplicant *wpa_s);
  40. struct wpa_driver_scan_params *
  41. wpa_scan_clone_params(const struct wpa_driver_scan_params *src);
  42. void wpa_scan_free_params(struct wpa_driver_scan_params *params);
  43. int wpas_start_pno(struct wpa_supplicant *wpa_s);
  44. int wpas_stop_pno(struct wpa_supplicant *wpa_s);
  45. void wpas_scan_reset_sched_scan(struct wpa_supplicant *wpa_s);
  46. void wpas_scan_restart_sched_scan(struct wpa_supplicant *wpa_s);
  47. void wpas_mac_addr_rand_scan_clear(struct wpa_supplicant *wpa_s,
  48. unsigned int type);
  49. int wpas_mac_addr_rand_scan_set(struct wpa_supplicant *wpa_s,
  50. unsigned int type, const u8 *addr,
  51. const u8 *mask);
  52. int wpas_abort_ongoing_scan(struct wpa_supplicant *wpa_s);
  53. void filter_scan_res(struct wpa_supplicant *wpa_s,
  54. struct wpa_scan_results *res);
  55. void scan_snr(struct wpa_scan_res *res);
  56. void scan_est_throughput(struct wpa_supplicant *wpa_s,
  57. struct wpa_scan_res *res);
  58. void wpa_supplicant_set_default_scan_ies(struct wpa_supplicant *wpa_s);
  59. #endif /* SCAN_H */