hostapd.h File Reference

hostapd / Initialization and configuration Host AP kernel driver More...

#include "common.h"
#include "hostapd_defs.h"
Include dependency graph for hostapd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hostapd_probereq_cb
struct  hostapd_data
 hostapd per-BSS data structure More...
struct  hostapd_iface
 hostapd per-interface data structure More...

Defines

#define STA_HASH_SIZE   256
#define STA_HASH(sta)   (sta[5])
#define AID_WORDS   ((2008 + 31) / 32)

Functions

int hostapd_reload_config (struct hostapd_iface *iface)
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.
int hostapd_setup_interface (struct hostapd_iface *iface)
 Setup of an interface.
int hostapd_setup_interface_complete (struct hostapd_iface *iface, int err)
void hostapd_interface_deinit (struct hostapd_iface *iface)
int handle_reload_iface (struct hostapd_iface *iface, void *ctx)
int handle_dump_state_iface (struct hostapd_iface *iface, void *ctx)
int hostapd_for_each_interface (int(*cb)(struct hostapd_iface *iface, void *ctx), void *ctx)
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)

Detailed Description

hostapd / Initialization and configuration Host AP kernel driver

Copyright
Copyright (c) 2002-2008, Jouni Malinen <j@w1.fi> Copyright (c) 2007-2008, Intel Corporation

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.h.


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:17 2009 for hostapd by  doxygen 1.6.1