Classes | Defines | Functions
hostapd.h File Reference
#include "common/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.

Classes

struct  hostapd_data
struct  hostapd_driver_ops
struct  hostapd_frame_info
struct  hostapd_iface
struct  hostapd_probereq_cb
struct  hostapd_rate_data

Defines

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

Functions

struct hostapd_datahostapd_alloc_bss_data (struct hostapd_iface *hapd_iface, struct hostapd_config *conf, struct hostapd_bss_config *bss)
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_notif_assoc (struct hostapd_data *hapd, const u8 *addr, const u8 *ie, size_t ielen)
void hostapd_notif_disassoc (struct hostapd_data *hapd, const u8 *addr)
void hostapd_prune_associations (struct hostapd_data *hapd, const u8 *addr)
int hostapd_register_probereq_cb (struct hostapd_data *hapd, int(*cb)(void *ctx, const u8 *sa, const u8 *ie, size_t ie_len), void *ctx)
int hostapd_reload_config (struct hostapd_iface *iface)
int hostapd_setup_interface (struct hostapd_iface *iface)
int hostapd_setup_interface_complete (struct hostapd_iface *iface, int err)

Define Documentation

#define AID_WORDS   ((2008 + 31) / 32)

Definition at line 121 of file hostapd.h.

#define HOSTAPD_RATE_BASIC   0x00000001

Definition at line 36 of file hostapd.h.

#define STA_HASH (   sta)    (sta[5])

Definition at line 113 of file hostapd.h.

#define STA_HASH_SIZE   256

Definition at line 112 of 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]

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.

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_notif_assoc ( struct hostapd_data hapd,
const u8 *  addr,
const u8 *  ie,
size_t  ielen 
)

Definition at line 36 of file drv_callbacks.c.

void hostapd_notif_disassoc ( struct hostapd_data hapd,
const u8 *  addr 
)

Definition at line 162 of file drv_callbacks.c.

void hostapd_prune_associations ( struct hostapd_data hapd,
const u8 *  addr 
)

hostapd_prune_associations - Remove extraneous associations : Pointer to BSS data for the most recent association : Associated STA address

This function looks through all radios and BSS's for previous (stale) associations of STA. If any are found they are removed.

Definition at line 80 of file utils.c.

int hostapd_register_probereq_cb ( struct hostapd_data hapd,
int(*)(void *ctx, const u8 *sa, const u8 *ie, size_t ie_len)  cb,
void *  ctx 
)

Definition at line 23 of file utils.c.

int hostapd_reload_config ( struct hostapd_iface iface)

Definition at line 46 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.



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