hostapd.c File Reference

hostapd / Initialization and configuration More...

#include "includes.h"
#include "eloop.h"
#include "hostapd.h"
#include "ieee802_1x.h"
#include "beacon.h"
#include "hw_features.h"
#include "accounting.h"
#include "eapol_sm.h"
#include "iapp.h"
#include "ieee802_11_defs.h"
#include "ieee802_11_auth.h"
#include "sta_info.h"
#include "ap_list.h"
#include "driver_i.h"
#include "radius/radius_client.h"
#include "radius/radius_server.h"
#include "wpa.h"
#include "preauth.h"
#include "vlan_init.h"
#include "ctrl_iface.h"
#include "tls.h"
#include "eap_server/eap_sim_db.h"
#include "eap_server/eap.h"
#include "eap_server/tncs.h"
#include "version.h"
#include "l2_packet/l2_packet.h"
#include "wps_hostapd.h"
#include "tkip_countermeasures.h"
Include dependency graph for hostapd.c:

Go to the source code of this file.

Data Structures

struct  wpa_auth_iface_iter_data

Functions

int hostapd_reload_config (struct hostapd_iface *iface)
int handle_reload_iface (struct hostapd_iface *iface, void *ctx)
int hostapd_setup_interface_complete (struct hostapd_iface *iface, int err)
int hostapd_setup_interface (struct hostapd_iface *iface)
 Setup of an interface.
struct hostapd_datahostapd_alloc_bss_data (struct hostapd_iface *hapd_iface, struct hostapd_config *conf, struct hostapd_bss_config *bss)
 Allocate and initialize per-BSS data.
void hostapd_interface_deinit (struct hostapd_iface *iface)
int hostapd_register_probereq_cb (struct hostapd_data *hapd, void(*cb)(void *ctx, const u8 *sa, const u8 *ie, size_t ie_len), void *ctx)

Variables

int wpa_debug_level

Detailed Description

hostapd / Initialization and configuration

Copyright
Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file hostapd.c.


Function Documentation

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

Allocate and initialize per-BSS data.

Parameters:
hapd_iface Pointer to interface data
conf Pointer to per-interface configuration
bss 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 1506 of file hostapd.c.

Here is the call graph for this function:

int hostapd_setup_interface ( struct hostapd_iface iface  ) 

Setup of an interface.

Parameters:
iface 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 1477 of file hostapd.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:17:15 2009 for hostapd by  doxygen 1.6.1