Defines | Functions
wps_supplicant.c File Reference
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "uuid.h"
#include "crypto/dh_group5.h"
#include "common/ieee802_11_defs.h"
#include "common/ieee802_11_common.h"
#include "common/wpa_common.h"
#include "common/wpa_ctrl.h"
#include "eap_common/eap_wsc_common.h"
#include "eap_peer/eap.h"
#include "rsn_supp/wpa.h"
#include "config.h"
#include "wpa_supplicant_i.h"
#include "driver_i.h"
#include "notify.h"
#include "blacklist.h"
#include "bss.h"
#include "scan.h"
#include "wps_supplicant.h"
Include dependency graph for wps_supplicant.c:

Go to the source code of this file.

Defines

#define WPS_PIN_SCAN_IGNORE_SEL_REG   3

Functions

static int wpa_supplicant_wps_cred (void *ctx, const struct wps_credential *cred)
static void wpa_supplicant_wps_event (void *ctx, enum wps_event event, union wps_event_data *data)
static void wpa_supplicant_wps_event_er_ap_add (struct wpa_supplicant *wpa_s, struct wps_event_er_ap *ap)
static void wpa_supplicant_wps_event_er_ap_remove (struct wpa_supplicant *wpa_s, struct wps_event_er_ap *ap)
static void wpa_supplicant_wps_event_er_enrollee_add (struct wpa_supplicant *wpa_s, struct wps_event_er_enrollee *enrollee)
static void wpa_supplicant_wps_event_er_enrollee_remove (struct wpa_supplicant *wpa_s, struct wps_event_er_enrollee *enrollee)
static void wpa_supplicant_wps_event_fail (struct wpa_supplicant *wpa_s, struct wps_event_fail *fail)
static void wpa_supplicant_wps_event_m2d (struct wpa_supplicant *wpa_s, struct wps_event_m2d *m2d)
static void wpa_supplicant_wps_event_success (struct wpa_supplicant *wpa_s)
static void wpas_clear_wps (struct wpa_supplicant *wpa_s)
static struct wpa_ssidwpas_wps_add_network (struct wpa_supplicant *wpa_s, int registrar, const u8 *bssid)
void wpas_wps_deinit (struct wpa_supplicant *wpa_s)
int wpas_wps_eapol_cb (struct wpa_supplicant *wpa_s)
int wpas_wps_er_start (struct wpa_supplicant *wpa_s)
int wpas_wps_er_stop (struct wpa_supplicant *wpa_s)
enum wps_request_type wpas_wps_get_req_type (struct wpa_ssid *ssid)
int wpas_wps_init (struct wpa_supplicant *wpa_s)
static int wpas_wps_new_psk_cb (void *ctx, const u8 *mac_addr, const u8 *psk, size_t psk_len)
void wpas_wps_notify_scan_results (struct wpa_supplicant *wpa_s)
static void wpas_wps_pin_needed_cb (void *ctx, const u8 *uuid_e, const struct wps_device_data *dev)
static void wpas_wps_reassoc (struct wpa_supplicant *wpa_s, struct wpa_ssid *selected)
int wpas_wps_scan_pbc_overlap (struct wpa_supplicant *wpa_s, struct wpa_bss *selected, struct wpa_ssid *ssid)
int wpas_wps_scan_result_text (const u8 *ies, size_t ies_len, char *buf, char *end)
int wpas_wps_searching (struct wpa_supplicant *wpa_s)
static void wpas_wps_security_workaround (struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, const struct wps_credential *cred)
static void wpas_wps_set_sel_reg_cb (void *ctx, int sel_reg, u16 dev_passwd_id, u16 sel_reg_config_methods)
int wpas_wps_ssid_bss_match (struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, struct wpa_scan_res *bss)
int wpas_wps_ssid_wildcard_ok (struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, struct wpa_scan_res *bss)
int wpas_wps_start_pbc (struct wpa_supplicant *wpa_s, const u8 *bssid)
int wpas_wps_start_pin (struct wpa_supplicant *wpa_s, const u8 *bssid, const char *pin)
int wpas_wps_start_reg (struct wpa_supplicant *wpa_s, const u8 *bssid, const char *pin, struct wps_new_ap_settings *settings)
int wpas_wps_terminate_pending (struct wpa_supplicant *wpa_s)
static void wpas_wps_timeout (void *eloop_ctx, void *timeout_ctx)

Define Documentation

Definition at line 38 of file wps_supplicant.c.


Function Documentation

static int wpa_supplicant_wps_cred ( void *  ctx,
const struct wps_credential cred 
) [static]

Definition at line 174 of file wps_supplicant.c.

static void wpa_supplicant_wps_event ( void *  ctx,
enum wps_event  event,
union wps_event_data data 
) [static]

Definition at line 471 of file wps_supplicant.c.

static void wpa_supplicant_wps_event_er_ap_add ( struct wpa_supplicant wpa_s,
struct wps_event_er_ap *  ap 
) [static]

Definition at line 401 of file wps_supplicant.c.

static void wpa_supplicant_wps_event_er_ap_remove ( struct wpa_supplicant wpa_s,
struct wps_event_er_ap *  ap 
) [static]

Definition at line 426 of file wps_supplicant.c.

static void wpa_supplicant_wps_event_er_enrollee_add ( struct wpa_supplicant wpa_s,
struct wps_event_er_enrollee *  enrollee 
) [static]

Definition at line 435 of file wps_supplicant.c.

static void wpa_supplicant_wps_event_er_enrollee_remove ( struct wpa_supplicant wpa_s,
struct wps_event_er_enrollee *  enrollee 
) [static]

Definition at line 461 of file wps_supplicant.c.

static void wpa_supplicant_wps_event_fail ( struct wpa_supplicant wpa_s,
struct wps_event_fail *  fail 
) [static]

Definition at line 384 of file wps_supplicant.c.

static void wpa_supplicant_wps_event_m2d ( struct wpa_supplicant wpa_s,
struct wps_event_m2d *  m2d 
) [static]

Definition at line 374 of file wps_supplicant.c.

static void wpa_supplicant_wps_event_success ( struct wpa_supplicant wpa_s) [static]

Definition at line 393 of file wps_supplicant.c.

static void wpas_clear_wps ( struct wpa_supplicant wpa_s) [static]

Definition at line 519 of file wps_supplicant.c.

static struct wpa_ssid* wpas_wps_add_network ( struct wpa_supplicant wpa_s,
int  registrar,
const u8 *  bssid 
) [static, read]

Definition at line 557 of file wps_supplicant.c.

void wpas_wps_deinit ( struct wpa_supplicant wpa_s)

Definition at line 873 of file wps_supplicant.c.

int wpas_wps_eapol_cb ( struct wpa_supplicant wpa_s)

Definition at line 44 of file wps_supplicant.c.

int wpas_wps_er_start ( struct wpa_supplicant wpa_s)

Definition at line 1102 of file wps_supplicant.c.

int wpas_wps_er_stop ( struct wpa_supplicant wpa_s)

Definition at line 1119 of file wps_supplicant.c.

Definition at line 509 of file wps_supplicant.c.

int wpas_wps_init ( struct wpa_supplicant wpa_s)

Definition at line 814 of file wps_supplicant.c.

static int wpas_wps_new_psk_cb ( void *  ctx,
const u8 *  mac_addr,
const u8 *  psk,
size_t  psk_len 
) [static]

Definition at line 766 of file wps_supplicant.c.

void wpas_wps_notify_scan_results ( struct wpa_supplicant wpa_s)

Definition at line 1046 of file wps_supplicant.c.

static void wpas_wps_pin_needed_cb ( void *  ctx,
const u8 *  uuid_e,
const struct wps_device_data dev 
) [static]

Definition at line 779 of file wps_supplicant.c.

static void wpas_wps_reassoc ( struct wpa_supplicant wpa_s,
struct wpa_ssid selected 
) [static]

Definition at line 613 of file wps_supplicant.c.

int wpas_wps_scan_pbc_overlap ( struct wpa_supplicant wpa_s,
struct wpa_bss selected,
struct wpa_ssid ssid 
)

Definition at line 998 of file wps_supplicant.c.

int wpas_wps_scan_result_text ( const u8 *  ies,
size_t  ies_len,
char *  buf,
char *  end 
)

Definition at line 1086 of file wps_supplicant.c.

int wpas_wps_searching ( struct wpa_supplicant wpa_s)

Definition at line 1073 of file wps_supplicant.c.

static void wpas_wps_security_workaround ( struct wpa_supplicant wpa_s,
struct wpa_ssid ssid,
const struct wps_credential cred 
) [static]

Definition at line 95 of file wps_supplicant.c.

static void wpas_wps_set_sel_reg_cb ( void *  ctx,
int  sel_reg,
u16  dev_passwd_id,
u16  sel_reg_config_methods 
) [static]

Definition at line 800 of file wps_supplicant.c.

int wpas_wps_ssid_bss_match ( struct wpa_supplicant wpa_s,
struct wpa_ssid ssid,
struct wpa_scan_res bss 
)

Definition at line 896 of file wps_supplicant.c.

int wpas_wps_ssid_wildcard_ok ( struct wpa_supplicant wpa_s,
struct wpa_ssid ssid,
struct wpa_scan_res bss 
)

Definition at line 963 of file wps_supplicant.c.

int wpas_wps_start_pbc ( struct wpa_supplicant wpa_s,
const u8 *  bssid 
)

Definition at line 636 of file wps_supplicant.c.

int wpas_wps_start_pin ( struct wpa_supplicant wpa_s,
const u8 *  bssid,
const char *  pin 
)

Definition at line 651 of file wps_supplicant.c.

int wpas_wps_start_reg ( struct wpa_supplicant wpa_s,
const u8 *  bssid,
const char *  pin,
struct wps_new_ap_settings *  settings 
)

Definition at line 726 of file wps_supplicant.c.

int wpas_wps_terminate_pending ( struct wpa_supplicant wpa_s)

Definition at line 1175 of file wps_supplicant.c.

static void wpas_wps_timeout ( void *  eloop_ctx,
void *  timeout_ctx 
) [static]

Definition at line 548 of file wps_supplicant.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:40