Functions | Variables
hostapd.c File Reference
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11_defs.h"
#include "radius/radius_client.h"
#include "drivers/driver.h"
#include "hostapd.h"
#include "authsrv.h"
#include "sta_info.h"
#include "accounting.h"
#include "ap_list.h"
#include "beacon.h"
#include "iapp.h"
#include "ieee802_1x.h"
#include "ieee802_11_auth.h"
#include "vlan_init.h"
#include "wpa_auth.h"
#include "wps_hostapd.h"
#include "hw_features.h"
#include "wpa_auth_glue.h"
#include "ap_drv_ops.h"
#include "ap_config.h"
Include dependency graph for hostapd.c:

Go to the source code of this file.

Functions

struct hostapd_datahostapd_alloc_bss_data (struct hostapd_iface *hapd_iface, struct hostapd_config *conf, struct hostapd_bss_config *bss)
static void hostapd_broadcast_key_clear_iface (struct hostapd_data *hapd, char *ifname)
static int hostapd_broadcast_wep_clear (struct hostapd_data *hapd)
static int hostapd_broadcast_wep_set (struct hostapd_data *hapd)
static void hostapd_cleanup (struct hostapd_data *hapd)
static void hostapd_cleanup_iface (struct hostapd_iface *iface)
static void hostapd_cleanup_iface_pre (struct hostapd_iface *iface)
static int hostapd_flush_old_stations (struct hostapd_data *hapd)
void hostapd_interface_deinit (struct hostapd_iface *iface)
void hostapd_interface_free (struct hostapd_iface *iface)
void hostapd_new_assoc_sta (struct hostapd_data *hapd, struct sta_info *sta, int reassoc)
int hostapd_reload_config (struct hostapd_iface *iface)
static int hostapd_setup_bss (struct hostapd_data *hapd, int first)
static int hostapd_setup_encryption (char *iface, struct hostapd_data *hapd)
int hostapd_setup_interface (struct hostapd_iface *iface)
int hostapd_setup_interface_complete (struct hostapd_iface *iface, int err)
static void hostapd_tx_queue_params (struct hostapd_iface *iface)
static int hostapd_validate_bssid_configuration (struct hostapd_iface *iface)
static int mac_in_conf (struct hostapd_config *conf, const void *a)
static int setup_interface (struct hostapd_iface *iface)

Variables

int wpa_debug_level

Function Documentation

struct hostapd_data* hostapd_alloc_bss_data ( struct hostapd_iface hapd_iface,
struct hostapd_config conf,
struct hostapd_bss_config bss 
) [read]

hostapd_alloc_bss_data - Allocate and initialize per-BSS data : Pointer to interface data : Pointer to per-interface configuration : Pointer to per-BSS configuration for this BSS Returns: Pointer to allocated BSS data

This function is used to allocate per-BSS data structure. This data will be freed after hostapd_cleanup() is called for it during interface deinitialization.

Definition at line 799 of file hostapd.c.

static void hostapd_broadcast_key_clear_iface ( struct hostapd_data hapd,
char *  ifname 
) [static]

Definition at line 121 of file hostapd.c.

static int hostapd_broadcast_wep_clear ( struct hostapd_data hapd) [static]

Definition at line 150 of file hostapd.c.

static int hostapd_broadcast_wep_set ( struct hostapd_data hapd) [static]

Definition at line 157 of file hostapd.c.

static void hostapd_cleanup ( struct hostapd_data hapd) [static]

hostapd_cleanup - Per-BSS cleanup (deinitialization) : Pointer to BSS data

This function is used to free all per-BSS data structures and resources. This gets called in a loop for each BSS between calls to hostapd_cleanup_iface_pre() and hostapd_cleanup_iface() when an interface is deinitialized. Most of the modules that are initialized in hostapd_setup_bss() are deinitialized here.

Definition at line 209 of file hostapd.c.

static void hostapd_cleanup_iface ( struct hostapd_iface iface) [static]

hostapd_cleanup_iface - Complete per-interface cleanup : Pointer to interface data

This function is called after per-BSS data structures are deinitialized with hostapd_cleanup().

Definition at line 259 of file hostapd.c.

static void hostapd_cleanup_iface_pre ( struct hostapd_iface iface) [static]

hostapd_cleanup_iface_pre - Preliminary per-interface cleanup : Pointer to interface data

This function is called before per-BSS data structures are deinitialized with hostapd_cleanup().

Definition at line 247 of file hostapd.c.

static int hostapd_flush_old_stations ( struct hostapd_data hapd) [static]

Definition at line 305 of file hostapd.c.

void hostapd_interface_deinit ( struct hostapd_iface iface)

Definition at line 820 of file hostapd.c.

void hostapd_interface_free ( struct hostapd_iface iface)

Definition at line 837 of file hostapd.c.

void hostapd_new_assoc_sta ( struct hostapd_data hapd,
struct sta_info sta,
int  reassoc 
)

hostapd_new_assoc_sta - Notify that a new station associated with the AP : Pointer to BSS data : Pointer to the associated STA data : 1 to indicate this was a re-association; 0 = first association

This function will be called whenever a station associates with the AP. It can be called from ieee802_11.c for drivers that export MLME to hostapd and from drv_callbacks.c based on driver events for drivers that take care of management frames (IEEE 802.11 authentication and association) internally.

Definition at line 857 of file hostapd.c.

int hostapd_reload_config ( struct hostapd_iface iface)

Definition at line 46 of file hostapd.c.

static int hostapd_setup_bss ( struct hostapd_data hapd,
int  first 
) [static]

hostapd_setup_bss - Per-BSS setup (initialization) : Pointer to BSS data : Whether this BSS is the first BSS of an interface

This function is used to initialize all per-BSS data structures and resources. This gets called in a loop for each BSS when an interface is initialized. Most of the modules that are initialized here will be deinitialized in hostapd_cleanup().

Definition at line 466 of file hostapd.c.

static int hostapd_setup_encryption ( char *  iface,
struct hostapd_data hapd 
) [static]

Definition at line 275 of file hostapd.c.

int hostapd_setup_interface ( struct hostapd_iface iface)

hostapd_setup_interface - Setup of an interface : Pointer to interface data. Returns: 0 on success, -1 on failure

Initializes the driver interface, validates the configuration, and sets driver parameters based on the configuration. Flushes old stations, sets the channel, encryption, beacons, and WDS links based on the configuration.

Definition at line 772 of file hostapd.c.

int hostapd_setup_interface_complete ( struct hostapd_iface iface,
int  err 
)

Definition at line 689 of file hostapd.c.

static void hostapd_tx_queue_params ( struct hostapd_iface iface) [static]

Definition at line 617 of file hostapd.c.

static int hostapd_validate_bssid_configuration ( struct hostapd_iface iface) [static]

hostapd_validate_bssid_configuration - Validate BSSID configuration : Pointer to interface data Returns: 0 on success, -1 on failure

This function is used to validate that the configured BSSIDs are valid.

Definition at line 341 of file hostapd.c.

static int mac_in_conf ( struct hostapd_config conf,
const void *  a 
) [static]

Definition at line 440 of file hostapd.c.

static int setup_interface ( struct hostapd_iface iface) [static]

Definition at line 639 of file hostapd.c.


Variable Documentation

Definition at line 29 of file wpa_debug.c.



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