scan.c File Reference
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11_defs.h"
#include "config.h"
#include "wpa_supplicant_i.h"
#include "driver_i.h"
#include "mlme.h"
#include "wps_supplicant.h"
#include "notify.h"
#include "bss.h"
#include "scan.h"
#include "../../src/nodes/wpa_supplicant_node.h"
Go to the source code of this file.
Functions |
static int | freq_cmp (const void *a, const void *b) |
static void | int_array_concat (int **res, const int *a) |
static int | int_array_len (const int *a) |
static void | int_array_sort_unique (int *a) |
const u8 * | wpa_scan_get_ie (const struct wpa_scan_res *res, u8 ie) |
static int | wpa_scan_get_max_rate (const struct wpa_scan_res *res) |
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) |
static int | wpa_scan_result_compar (const void *a, const void *b) |
void | wpa_scan_results_free (struct wpa_scan_results *res) |
static void | wpa_supplicant_assoc_try (struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) |
static struct
wpa_driver_scan_filter * | wpa_supplicant_build_filter_ssids (struct wpa_config *conf, size_t *num_ssids) |
void | wpa_supplicant_cancel_scan (struct wpa_supplicant *wpa_s) |
int | wpa_supplicant_enabled_networks (struct wpa_config *conf) |
static void | wpa_supplicant_gen_assoc_event (struct wpa_supplicant *wpa_s) |
struct wpa_scan_results * | wpa_supplicant_get_scan_results (struct wpa_supplicant *wpa_s, struct scan_info *info, int new_scan) |
void | wpa_supplicant_notify_scanning (struct wpa_supplicant *wpa_s, int scanning) |
void | wpa_supplicant_req_scan (struct wpa_supplicant *wpa_s, int sec, int usec) |
static void | wpa_supplicant_scan (void *eloop_ctx, void *timeout_ctx) |
int | wpa_supplicant_trigger_scan (struct wpa_supplicant *wpa_s, struct wpa_driver_scan_params *params) |
int | wpa_supplicant_update_scan_results (struct wpa_supplicant *wpa_s) |
Function Documentation
static int freq_cmp |
( |
const void * |
a, |
|
|
const void * |
b | |
|
) |
| | [static] |
static void int_array_concat |
( |
int ** |
res, |
|
|
const int * |
a | |
|
) |
| | [static] |
static int int_array_len |
( |
const int * |
a |
) |
[static] |
static void int_array_sort_unique |
( |
int * |
a |
) |
[static] |
static int wpa_scan_get_max_rate |
( |
const struct wpa_scan_res * |
res |
) |
[static] |
const u8* wpa_scan_get_vendor_ie |
( |
const struct wpa_scan_res * |
res, |
|
|
u32 |
vendor_type | |
|
) |
| | |
static int wpa_scan_result_compar |
( |
const void * |
a, |
|
|
const void * |
b | |
|
) |
| | [static] |
static struct wpa_driver_scan_filter* wpa_supplicant_build_filter_ssids |
( |
struct wpa_config * |
conf, |
|
|
size_t * |
num_ssids | |
|
) |
| | [static, read] |
int wpa_supplicant_enabled_networks |
( |
struct wpa_config * |
conf |
) |
|
static void wpa_supplicant_gen_assoc_event |
( |
struct wpa_supplicant * |
wpa_s |
) |
[static] |
wpa_supplicant_get_scan_results - Get scan results : Pointer to wpa_supplicant data : Information about what was scanned or NULL if not available : Whether a new scan was performed Returns: Scan results, NULL on failure
This function request the current scan results from the driver and updates the local BSS list wpa_s->bss. The caller is responsible for freeing the results with wpa_scan_results_free().
Definition at line 654 of file scan.c.
void wpa_supplicant_notify_scanning |
( |
struct wpa_supplicant * |
wpa_s, |
|
|
int |
scanning | |
|
) |
| | |
void wpa_supplicant_req_scan |
( |
struct wpa_supplicant * |
wpa_s, |
|
|
int |
sec, |
|
|
int |
usec | |
|
) |
| | |
wpa_supplicant_req_scan - Schedule a scan for neighboring access points : Pointer to wpa_supplicant data : Number of seconds after which to scan : Number of microseconds after which to scan
This function is used to schedule a scan for neighboring access points after the specified time.
Definition at line 445 of file scan.c.
static void wpa_supplicant_scan |
( |
void * |
eloop_ctx, |
|
|
void * |
timeout_ctx | |
|
) |
| | [static] |
int wpa_supplicant_update_scan_results |
( |
struct wpa_supplicant * |
wpa_s |
) |
|