hostapd.c File Reference

hostapd / Initialization and configuration More...

#include "includes.h"
#include <syslog.h>
#include "eloop.h"
#include "hostapd.h"
#include "ieee802_1x.h"
#include "ieee802_11.h"
#include "beacon.h"
#include "hw_features.h"
#include "accounting.h"
#include "eapol_sm.h"
#include "iapp.h"
#include "ap.h"
#include "ieee802_11_auth.h"
#include "ap_list.h"
#include "sta_info.h"
#include "driver.h"
#include "radius_client.h"
#include "radius_server.h"
#include "wpa.h"
#include "preauth.h"
#include "wme.h"
#include "vlan_init.h"
#include "ctrl_iface.h"
#include "tls.h"
#include "eap_sim_db.h"
#include "eap.h"
#include "version.h"

Include dependency graph for hostapd.c:

Go to the source code of this file.

Functions

void hostapd_logger (struct hostapd_data *hapd, const u8 *addr, unsigned int module, int level, const char *fmt,...)
const char * hostapd_ip_txt (const struct hostapd_ip_addr *addr, char *buf, size_t buflen)
int hostapd_ip_diff (struct hostapd_ip_addr *a, struct hostapd_ip_addr *b)
void hostapd_new_assoc_sta (struct hostapd_data *hapd, struct sta_info *sta, int reassoc)
 Notify that a new station associated with the AP.
int hostapd_setup_interface_start (struct hostapd_iface *iface, hostapd_iface_cb cb)
 Start the setup of an interface.
int hostapd_setup_interface_stop (struct hostapd_iface *iface)
 Stops the setup of an interface.
void driver_register (const char *name, const struct driver_ops *ops)
void driver_unregister (const char *name)
const struct driver_ops * driver_lookup (const char *name)
void register_drivers (void)
 Register driver interfaces.
int main (int argc, char *argv[])

Variables

unsigned char rfc1042_header [6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 }
int wpa_debug_level
int wpa_debug_show_keys
int wpa_debug_timestamp


Detailed Description

hostapd / Initialization and configuration

Copyright
Copyright (c) 2002-2006, Jouni Malinen <[email protected]>
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

void hostapd_new_assoc_sta struct hostapd_data hapd,
struct sta_info *  sta,
int  reassoc
 

Notify that a new station associated with the AP.

Parameters:
hapd Pointer to BSS data
sta Pointer to the associated STA data
reassoc 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 for ieee802_11.c for drivers that export MLME to hostapd and from driver_*.c for drivers that take care of management frames (IEEE 802.11 authentication and association) internally.

Definition at line 275 of file hostapd.c.

int hostapd_setup_interface_start struct hostapd_iface iface,
hostapd_iface_cb  cb
 

Start the setup of an interface.

Parameters:
iface Pointer to interface data.
cb The function to callback when done.
Returns:
0 if it starts successfully; cb will be called when done. -1 on failure; cb will not be called.
Initializes the driver interface, validates the configuration, and sets driver parameters based on the configuration. Flushes old stations, sets the channel, DFS parameters, encryption, beacons, and WDS links based on the configuration.

Definition at line 1475 of file hostapd.c.

Here is the call graph for this function:

int hostapd_setup_interface_stop struct hostapd_iface iface  ) 
 

Stops the setup of an interface.

Parameters:
iface Pointer to interface data
Returns:
0 if successfully stopped; -1 on failure (i.e., was not in progress)

Definition at line 1500 of file hostapd.c.

void register_drivers void   ) 
 

Register driver interfaces.

This function is generated by Makefile (into driver_conf.c) to call all configured driver interfaces to register them to core hostapd.


Generated on Sun Dec 31 13:44:56 2006 for hostapd by  doxygen 1.4.2