hostapd / Initialization and configuration Host AP kernel driver More...
#include "common.h"
#include "hostapd_defs.h"
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_data * | hostapd_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) |
hostapd / Initialization and configuration Host AP kernel driver
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.
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.
hapd_iface | Pointer to interface data | |
conf | Pointer to per-interface configuration | |
bss | Pointer to per-BSS configuration for this BSS |
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.
int hostapd_setup_interface | ( | struct hostapd_iface * | iface | ) |
Setup of an interface.
iface | Pointer to interface data. |
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.