$search
#include "common/defs.h"
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_data * | hostapd_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) |
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.
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 | |||
) |
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.
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.
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 | |||
) |
int hostapd_reload_config | ( | struct hostapd_iface * | iface | ) |
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.
int hostapd_setup_interface_complete | ( | struct hostapd_iface * | iface, | |
int | err | |||
) |