Functions
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"
Include dependency graph for scan.c:

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 wpabufwpa_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_resultswpa_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]

Definition at line 146 of file scan.c.

static void int_array_concat ( int **  res,
const int *  a 
) [static]

Definition at line 126 of file scan.c.

static int int_array_len ( const int *  a) [static]

Definition at line 117 of file scan.c.

static void int_array_sort_unique ( int *  a) [static]

Definition at line 159 of file scan.c.

const u8* wpa_scan_get_ie ( const struct wpa_scan_res res,
u8  ie 
)

Definition at line 522 of file scan.c.

static int wpa_scan_get_max_rate ( const struct wpa_scan_res res) [static]

Definition at line 500 of file scan.c.

const u8* wpa_scan_get_vendor_ie ( const struct wpa_scan_res res,
u32  vendor_type 
)

Definition at line 541 of file scan.c.

struct wpabuf* wpa_scan_get_vendor_ie_multi ( const struct wpa_scan_res res,
u32  vendor_type 
) [read]

Definition at line 562 of file scan.c.

static int wpa_scan_result_compar ( const void *  a,
const void *  b 
) [static]

Definition at line 595 of file scan.c.

void wpa_scan_results_free ( struct wpa_scan_results res)

Definition at line 693 of file scan.c.

static void wpa_supplicant_assoc_try ( struct wpa_supplicant wpa_s,
struct wpa_ssid ssid 
) [static]

Definition at line 89 of file scan.c.

static struct wpa_driver_scan_filter* wpa_supplicant_build_filter_ssids ( struct wpa_config conf,
size_t *  num_ssids 
) [static, read]

Definition at line 209 of file scan.c.

void wpa_supplicant_cancel_scan ( struct wpa_supplicant wpa_s)

wpa_supplicant_cancel_scan - Cancel a scheduled scan request : Pointer to wpa_supplicant data

This function is used to cancel a scan request scheduled with wpa_supplicant_req_scan().

Definition at line 483 of file scan.c.

Definition at line 77 of file scan.c.

static void wpa_supplicant_gen_assoc_event ( struct wpa_supplicant wpa_s) [static]

Definition at line 30 of file scan.c.

struct wpa_scan_results* wpa_supplicant_get_scan_results ( struct wpa_supplicant wpa_s,
struct scan_info *  info,
int  new_scan 
) [read]

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 
)

Definition at line 490 of file scan.c.

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]

Definition at line 241 of file scan.c.

int wpa_supplicant_trigger_scan ( struct wpa_supplicant wpa_s,
struct wpa_driver_scan_params params 
)

Definition at line 185 of file scan.c.

Definition at line 681 of file scan.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:24